Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
AE
Sith
Commits
a0a86ef8
Verified
Commit
a0a86ef8
authored
Jun 10, 2018
by
Sli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow BDF's members to see subscriptions on users
parent
90e1e7c1
Pipeline
#1501
passed with stage
in 6 minutes and 58 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
core/templates/core/user_detail.jinja
core/templates/core/user_detail.jinja
+1
-1
sith/settings.py
sith/settings.py
+1
-0
No files found.
core/templates/core/user_detail.jinja
View file @
a0a86ef8
...
...
@@ -111,7 +111,7 @@
</div>
</div>
{%
if
user.memberships.
filter
(
end_date
=
None
)
.
exists
()
or
user.is_in_group
(
settings.SITH_MAIN_BOARD_GROUP
)
or
user
==
profile
%}
{%
if
user.memberships.
filter
(
end_date
=
None
)
.
exists
()
or
user.is_in_group
(
settings.SITH_MAIN_BOARD_GROUP
)
or
user
==
profile
or
user.is_in_group
(
settings.SITH_BAR_MANAGER_BOARD_GROUP
)
%}
{# if the user is member of a club, he can view the subscription state #}
<hr>
{%
if
profile.is_subscribed
%}
...
...
sith/settings.py
View file @
a0a86ef8
...
...
@@ -344,6 +344,7 @@ SITH_MEMBER_SUFFIX = "-membres"
SITH_MAIN_BOARD_GROUP
=
SITH_MAIN_CLUB
[
'unix_name'
]
+
SITH_BOARD_SUFFIX
SITH_MAIN_MEMBERS_GROUP
=
SITH_MAIN_CLUB
[
'unix_name'
]
+
SITH_MEMBER_SUFFIX
SITH_BAR_MANAGER_BOARD_GROUP
=
SITH_BAR_MANAGER
[
'unix_name'
]
+
SITH_BOARD_SUFFIX
SITH_PROFILE_DEPARTMENTS
=
[
(
"TC"
,
_
(
"TC"
)),
...
...
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