Merge pull request #4370 from normanjaeckel/FixAgendaHidden
Fixed permission check for hidden and internal items.
This commit is contained in:
commit
c1a818a368
@ -71,11 +71,13 @@ class ItemAccessPermissions(BaseAccessPermissions):
|
|||||||
|
|
||||||
data = []
|
data = []
|
||||||
for full in full_data:
|
for full in full_data:
|
||||||
if full["is_hidden"] and can_see_hidden:
|
if full["is_hidden"]:
|
||||||
# Same filtering for internal and hidden items
|
if can_see_hidden:
|
||||||
data.append(
|
# Same filtering for internal and hidden items
|
||||||
filtered_data(full, blocked_keys_internal_hidden_case)
|
data.append(
|
||||||
)
|
filtered_data(full, blocked_keys_internal_hidden_case)
|
||||||
|
)
|
||||||
|
# If can_see_hidden is false, the user (which is a non manager) can not see anything.
|
||||||
elif full["is_internal"]:
|
elif full["is_internal"]:
|
||||||
data.append(
|
data.append(
|
||||||
filtered_data(full, blocked_keys_internal_hidden_case)
|
filtered_data(full, blocked_keys_internal_hidden_case)
|
||||||
|
Loading…
Reference in New Issue
Block a user