]> wagner.pp.ru Git - oss/stilllife.git/commitdiff
Now recoginzes moderators as well as admins and users
authorVictor Wagner <vitus@wagner.pp.ru>
Tue, 25 Mar 2008 12:58:49 +0000 (12:58 +0000)
committerVictor Wagner <vitus@wagner.pp.ru>
Tue, 25 Mar 2008 12:58:49 +0000 (12:58 +0000)
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;
 }