3 Commits

Author SHA1 Message Date
Tao Zhou
34417a10ae Update doc for addMenuLink
Bug: Issue 11714
Change-Id: I09f65cba904f243363f797138e9f8643302805b7
2019-10-22 13:36:59 +02:00
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
Wyatt Allen
c148593425 Add API for defining new admin menu links from plugins
Change-Id: If818b752a2e451cbeeabf3423e56cd5a85141b00
2018-03-30 16:38:17 -07:00