Skip to content

Commit

Permalink
Acl.php response has no more status
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoupin committed Sep 24, 2019
1 parent 10111ef commit f74dcaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export async function init() {
try {
acl = await vigilo.acl(key);
} catch (e) {}
if (acl.status == 0 && acl.role == "admin"){
if (acl.role == "admin"){
// Is admin mode ?
if (localDataManager.isAdmin()){
document.body.style.backgroundColor="red";
Expand Down

0 comments on commit f74dcaf

Please sign in to comment.