Skip to content

Commit

Permalink
Remove unauthorized items from + menu for lower-level users (#4290)
Browse files Browse the repository at this point in the history
* update modal step ID

* remove options from + menu for non-root users
  • Loading branch information
kflemin authored Oct 27, 2023
1 parent 3108bbb commit d9f3f33
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions seed/templates/seed/_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@
>Data Quality</a
>
</li>
<li><a ui-sref="organization_derived_columns({organization_id: menu.user.organization.id, inventory_type: 'properties'})" ui-sref-active="active" translate>Derived Columns</a></li>
<li><a ui-sref="organization_email_templates({organization_id: menu.user.organization.id})" ui-sref-active="active" translate>Email Templates</a></li>
<li><a ui-sref="organization_derived_columns({organization_id: menu.user.organization.id, inventory_type: 'properties'})" ng-if="menu.user.organization.is_parent && auth.requires_owner" ui-sref-active="active" translate>Derived Columns</a></li>
<li><a ui-sref="organization_email_templates({organization_id: menu.user.organization.id})" ng-if="menu.user.organization.is_parent && auth.requires_owner" ui-sref-active="active" translate>Email Templates</a></li>
<li><a ui-sref="organization_labels({organization_id: menu.user.organization.id})" ng-if="auth.requires_owner" ui-sref-active="active" translate>Labels</a></li>
<li><a ui-sref="organization_members({organization_id: menu.user.organization.id})" ui-sref-active="active" translate>Members</a></li>
<li><a ui-sref="programs({organization_id: menu.user.organization.id})" ui-sref-active="active" translate>Program Setup</a></li>
<li><a ui-sref="programs({organization_id: menu.user.organization.id})" ng-if="menu.user.organization.is_parent && auth.requires_owner"ui-sref-active="active" translate>Program Setup</a></li>
<li><a ui-sref="organization_settings({organization_id: menu.user.organization.id})" ng-if="auth.requires_owner" ui-sref-active="active" translate>Settings</a></li>
<li>
<a ui-sref="organization_sharing({organization_id: menu.user.organization.id})" ng-if="menu.user.organization.is_parent && auth.requires_owner" ui-sref-active="active" translate>Sharing</a>
Expand All @@ -73,7 +73,7 @@
>Sub-Organizations</a
>
</li>
<li><a ui-sref="organization_access_level_tree({organization_id: menu.user.organization.id})" ui-sref-active="active" translate>Access Level Tree</a></li>
<li><a ui-sref="organization_access_level_tree({organization_id: menu.user.organization.id})" ng-if="menu.user.organization.is_parent && auth.requires_owner" ui-sref-active="active" translate>Access Level Tree</a></li>

<!--<li>
<a data-toggle="modal" data-target="#newProjectModalIndex" ng-click="open_create_project_modal()">Project</a>
Expand Down

0 comments on commit d9f3f33

Please sign in to comment.