@@ -184,7 +184,7 @@ def get_perms_for_forumlist(self, forums, perm_codenames=None):
184
184
# - not set to non-granted on global-user level
185
185
# - and not set to non-granted on forum-group level
186
186
# - and not set to non-granted on forum-user level
187
- globally_granted_group_perms = list (
187
+ forum_globally_granted_group_perms = list (
188
188
filter (lambda p : p .has_perm and p .forum_id is None and
189
189
p .permission_id not in
190
190
[q .permission_id for q in globally_nongranted_user_perms ] and
@@ -195,14 +195,14 @@ def get_perms_for_forumlist(self, forums, perm_codenames=None):
195
195
globally_granted_group_perms )
196
196
)
197
197
globally_granted_group_permcodes = [
198
- p .permission .codename for p in globally_granted_group_perms
198
+ p .permission .codename for p in forum_globally_granted_group_perms
199
199
]
200
200
201
201
# Filter the globally non granted group perms to those that were:
202
202
# - not set to granted on global- user level
203
203
# - and not set to granted on forum-group level
204
204
# - and not set to granted on forum-user level
205
- globally_nongranted_group_perms = list (
205
+ forum_globally_nongranted_group_perms = list (
206
206
filter (lambda p : not p .has_perm and p .forum_id is None and
207
207
p .permission_id not in
208
208
[q .permission_id for q in globally_granted_user_perms ] and
@@ -251,7 +251,7 @@ def get_perms_for_forumlist(self, forums, perm_codenames=None):
251
251
# - and not set to non-granted on global-group level
252
252
# - and not set to non-granted on forum-group level
253
253
# - and not set to non-granted on forum-user level
254
- globally_granted_all_users_perms = list (
254
+ forum_globally_granted_all_users_perms = list (
255
255
filter (lambda p : p .has_perm and p .forum_id is None and
256
256
p .permission_id not in
257
257
[y .permission_id for y in per_forum_nongranted_all_users_perms ] and
@@ -266,7 +266,7 @@ def get_perms_for_forumlist(self, forums, perm_codenames=None):
266
266
globally_granted_all_users_perms )
267
267
)
268
268
globally_granted_all_users_permcodes = [
269
- p .permission .codename for p in globally_granted_all_users_perms
269
+ p .permission .codename for p in forum_globally_granted_all_users_perms
270
270
]
271
271
granted_all_users_permcodes = set (globally_granted_all_users_permcodes +
272
272
per_forum_granted_all_users_permcodes )
0 commit comments