From: Victor Wagner Date: Tue, 25 Mar 2008 12:58:49 +0000 (+0000) Subject: Now recoginzes moderators as well as admins and users X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=ca2ba3e6a15a53bdc210fd6acf8967bbd232b639;p=oss%2Fstilllife.git Now recoginzes moderators as well as admins and users --- diff --git a/templates/basicset/page.js b/templates/basicset/page.js index 9eca966..8796e12 100644 --- a/templates/basicset/page.js +++ b/templates/basicset/page.js @@ -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; }