mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/html: hide 'pools' in navbar if user doesn't have privileges
This commit is contained in:
@ -50,6 +50,9 @@ class TopNavigationController {
|
|||||||
if (!api.hasPrivilege("users:list")) {
|
if (!api.hasPrivilege("users:list")) {
|
||||||
topNavigation.hide("users");
|
topNavigation.hide("users");
|
||||||
}
|
}
|
||||||
|
if (!api.hasPrivilege("pools:list")) {
|
||||||
|
topNavigation.hide("pools");
|
||||||
|
}
|
||||||
if (api.isLoggedIn()) {
|
if (api.isLoggedIn()) {
|
||||||
if (!api.hasPrivilege("users:create:any")) {
|
if (!api.hasPrivilege("users:create:any")) {
|
||||||
topNavigation.hide("register");
|
topNavigation.hide("register");
|
||||||
|
Reference in New Issue
Block a user