Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bwinf
medal
Commits
75a08bfc
Commit
75a08bfc
authored
Mar 10, 2020
by
Robert Czechowski
Browse files
Do not show address in profile for accounts with pms oauth login
parent
aa00d8ac
Pipeline
#474
failed with stages
in 31 minutes and 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/core.rs
View file @
75a08bfc
...
...
@@ -830,6 +830,9 @@ pub fn show_profile<T: MedalConnection>(conn: &T, session_token: &str, user_id:
if
session
.managed_by
.is_none
()
{
data
.insert
(
"profile_not_in_group"
.into
(),
to_json
(
&
true
));
}
if
session
.oauth_provider
!=
Some
(
"pms"
.to_string
())
{
data
.insert
(
"profile_not_pms"
.into
(),
to_json
(
&
true
));
}
data
.insert
(
"ownprofile"
.into
(),
to_json
(
&
true
));
if
let
Some
(
query
)
=
query_string
{
...
...
@@ -868,7 +871,9 @@ pub fn show_profile<T: MedalConnection>(conn: &T, session_token: &str, user_id:
if
user
.managed_by
.is_none
()
{
data
.insert
(
"profile_not_in_group"
.into
(),
to_json
(
&
true
));
}
if
session
.oauth_provider
!=
Some
(
"pms"
.to_string
())
{
data
.insert
(
"profile_not_pms"
.into
(),
to_json
(
&
true
));
}
data
.insert
(
"ownprofile"
.into
(),
to_json
(
&
false
));
if
let
Some
(
query
)
=
query_string
{
...
...
templates/jwinf/profile.hbs
View file @
75a08bfc
...
...
@@ -73,6 +73,7 @@
<td>
Nachname:
</td><td><input
name=
"lastname"
value=
"
{{
profile_lastname
}}
"
required
></td>
</tr>
{{#if
profile_not_in_group
}}
{{#if
profile_not_pms
}}
<tr>
<td>
Straße und Hausnummer:
</td><td><input
name=
"street"
value=
"
{{
profile_street
}}
"
></td>
</tr>
...
...
@@ -82,6 +83,7 @@
<tr>
<td>
Stadt:
</td><td><input
name=
"city"
value=
"
{{
profile_city
}}
"
></td>
</tr>
{{/if}}
{{/if}}
<tr>
<td>
Jahrgangsstufe:
</td><td>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment