Files
gerrit/polygerrit-ui/app/elements/admin/gr-admin-view
Thomas Draebing 7880b0bc64 Add capability check when adding plugin entries to admin nav
So far, when adding entries for plugins to the admin navigation, they
were always visible for all logged in users. In some cases, this might
not be desirable.

This change adds an optional parameter to the AdminApi().addMenuLink()
API for plugins, that allows to set a capability a user must have to see
the menu entry. If no capability is set, the menu entry will be visible
to all logged in users as before.

Change-Id: I463d6ec8b9fcf360318255f7785bdf8cc52b00bb
2019-09-06 02:09:48 +00:00
..