summaryrefslogtreecommitdiffstats
path: root/app/acf-util
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-08-09 15:13:07 +0000
committerTed Trask <ttrask01@yahoo.com>2008-08-09 15:13:07 +0000
commit29fa171ab5b048d9f74ef4c8c9ee0b7d62fc3aa3 (patch)
tree81049538404e1a35975a7a3c8b7f758a959624b2 /app/acf-util
parentaf43f4566cf43ab0a1a700685c0286840c124d0a (diff)
downloadacf-core-29fa171ab5b048d9f74ef4c8c9ee0b7d62fc3aa3.tar.bz2
acf-core-29fa171ab5b048d9f74ef4c8c9ee0b7d62fc3aa3.tar.xz
Modified roles to list views that don't have actions in the list of available permissions
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1374 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'app/acf-util')
-rw-r--r--app/acf-util/roles-model.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/acf-util/roles-model.lua b/app/acf-util/roles-model.lua
index f064536..9149ba2 100644
--- a/app/acf-util/roles-model.lua
+++ b/app/acf-util/roles-model.lua
@@ -14,11 +14,18 @@ local get_all_permissions = function(self)
if nil == table_perm[b.sname] then
table_perm[b.sname] = {}
end
- temp = roles.get_controllers_func(self,b)
+ local temp = roles.get_controllers_func(self,b)
for x,y in ipairs(temp) do
table_perm[b.sname][y] = {}
array_perm[#array_perm + 1] = b.sname .. ":" .. y
end
+ temp = roles.get_controllers_view(self,b)
+ for x,y in ipairs(temp) do
+ if not table_perm[b.sname][y] then
+ table_perm[b.sname][y] = {}
+ array_perm[#array_perm + 1] = b.sname .. ":" .. y
+ end
+ end
end
return table_perm, array_perm