RBAC 2.0
This commit is contained in:
@@ -550,7 +550,7 @@ async function checkAuth() {
|
||||
document.getElementById("build-link")?.classList.remove("hidden");
|
||||
document.getElementById("plugins-link")?.classList.remove("hidden");
|
||||
document.getElementById("deploy-link")?.classList.remove("hidden");
|
||||
} else if (data.role === "operator") {
|
||||
} else if (data.role === "operator" || data.canBuild) {
|
||||
document.getElementById("build-link")?.classList.remove("hidden");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user