mirror of
https://github.com/portainer/portainer.git
synced 2025-07-30 10:49:40 +02:00
fix(app): disable-authorization directive was hiding/showing elements instead of disabling them
This commit is contained in:
parent
3d4af7c54f
commit
f20526d662
1 changed files with 0 additions and 2 deletions
|
@ -5,11 +5,9 @@ angular.module('portainer.extensions.rbac')
|
|||
try {
|
||||
const rbacEnabled = await ExtensionService.extensionEnabled(ExtensionService.EXTENSIONS.RBAC);
|
||||
if (!rbacEnabled) {
|
||||
elem.show();
|
||||
return;
|
||||
}
|
||||
} catch (err) {
|
||||
elem.show();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue