From: <te...@us...> - 2004-07-30 22:08:35
|
Update of /cvsroot/tikiwiki/tiki/lib/static In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5241/lib/static Modified Files: staticlib.php Log Message: statictiki: more work on statictiki's permissions Index: staticlib.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/lib/static/staticlib.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- staticlib.php 30 Jul 2004 21:59:30 -0000 1.10 +++ staticlib.php 30 Jul 2004 22:08:26 -0000 1.11 @@ -62,6 +62,14 @@ $static_group = "Registered"; $user = NULL; $smarty->assign('user', $user); + // reset all perms + $allperms = $userlib->get_permissions(); + foreach ($allperms['data'] as $perm) { + $perm = $perm['permName']; + $smarty->assign("$perm", 'n'); + $$perm = 'n'; + } + // set perms from the chosen group $perms = $userlib->get_group_permissions($static_group); foreach ($perms as $perm) { $smarty->assign("$perm", 'y'); |