mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-23 15:57:23 -04:00
Hide current folder templates if user doesn't have a folder permission
TemplateList gets a list of templates in a current folder separately, so we need to make sure `service.get_templates` checks for the appropriate user permission
This commit is contained in:
committed by
Pea Tyczynska
parent
70e6732255
commit
3d401ce856
@@ -40,7 +40,7 @@ class TemplateList():
|
||||
yield sub_item
|
||||
|
||||
for item in self.service.get_templates(
|
||||
template_type, template_folder_id
|
||||
template_type, template_folder_id, user_id
|
||||
):
|
||||
yield TemplateListTemplate(
|
||||
item,
|
||||
|
||||
Reference in New Issue
Block a user