summaryrefslogtreecommitdiffstats
path: root/lib/authenticator.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-10-24 15:20:36 +0000
committerTed Trask <ttrask01@yahoo.com>2008-10-24 15:20:36 +0000
commit43915f5de0ae60da41615a3edacca18cd85dd921 (patch)
tree0eb4d66c612feaea5b4d789d3293012447afe07c /lib/authenticator.lua
parent062423a2cd98a8c1dfd23453853bf73b8db1b180 (diff)
downloadacf-core-43915f5de0ae60da41615a3edacca18cd85dd921.tar.bz2
acf-core-43915f5de0ae60da41615a3edacca18cd85dd921.tar.xz
Minor change to roles code and major change to roles. Replaced ALL, CREATE, READ, UPDATE, and DELETE with GUEST, USER, EDITOR, EXPERT, and ADMIN. Changed all roles files and modified some html files to hide options without permissions. Determine default roles from roles files, rather than hard-coded, and added ability to modify default roles by adding permissions.
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1563 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'lib/authenticator.lua')
-rw-r--r--lib/authenticator.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/authenticator.lua b/lib/authenticator.lua
index 1b55150..941e19f 100644
--- a/lib/authenticator.lua
+++ b/lib/authenticator.lua
@@ -171,7 +171,7 @@ get_userinfo_roles = function(self, userid)
if rol then
local avail_roles = rol.list_all_roles(self)
for x,role in ipairs(avail_roles) do
- if role=="ALL" then
+ if role==rol.guest_role then
table.remove(avail_roles,x)
break
end