summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2011-07-21 14:18:27 +0000
committerTed Trask <ttrask01@yahoo.com>2011-07-21 14:18:27 +0000
commit8d1cc190a47f421a40b65855efa34298e4633db5 (patch)
treeb2416e2961a89b5b667916a1f26202b314dd876d
parente927cb20b4280fed1f9769590d1abdcd891a32fc (diff)
downloadacf-core-8d1cc190a47f421a40b65855efa34298e4633db5.tar.bz2
acf-core-8d1cc190a47f421a40b65855efa34298e4633db5.tar.xz
Removed logon / logout from list of home pages
-rw-r--r--app/acf-util/password-controller.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/acf-util/password-controller.lua b/app/acf-util/password-controller.lua
index 19362ea..37e5ced 100644
--- a/app/acf-util/password-controller.lua
+++ b/app/acf-util/password-controller.lua
@@ -19,7 +19,9 @@ function editme(self)
local tmp1, tmp2 = roles.get_roles_perm(self, value.value.roles.value)
table.sort(tmp2)
for i,h in ipairs(tmp2) do
- value.value.home.option[#value.value.home.option+1] = h
+ if h ~= "/acf-util/logon/logout" and h ~= "/acf-util/logon/logon" then
+ value.value.home.option[#value.value.home.option+1] = h
+ end
end
value.value.roles = nil
return value