]> www.wagner.pp.ru Git - oss/stilllife.git/blobdiff - templates/basicset/page.js
Now recoginzes moderators as well as admins and users
[oss/stilllife.git] / templates / basicset / page.js
index 9eca966bb8ceaa642ba95ef0d49abc71d644312e..8796e12ec95a6d7710e817b663a155d16ee374fd 100644 (file)
@@ -91,14 +91,14 @@ function getUserRights(user) {
        if(perms!=null) {
            if(perms[1]=="banned") return "banned";
            if(perms[1]=="admins") return "admin";
-           status=="moderator";
+           status="moderator";
+
        }
        
        xhr.open("GET", path+".forum",false);
        xhr.send("");
        if(xhr.status==403 || xhr.status==200) break;
     }
-    
     return status;
 }