Page autors can admin their page not working? Posted by Helene 03 Dec 2005 18:31 UTC With "page creators can admin their pages" checked, the permission is still denied for the creator. The condition doesn't seem to be checked when loading the edition. How could I fix this? Thanks. Helene
Posted by sylvie greverend 05 Dec 2005 15:33 UTC It was a bug. Fixed in 1.9.3 Apply this patch in tiki-editpage.php change the line Copy to clipboardif ($tiki_p_admin != 'y' && !$tikilib->user_has_perm_on_object($user, $page, 'wiki page', 'tiki_p_edit')) { to the line Copy to clipboardif (!($tiki_p_admin == 'y' || $tikilib->user_has_perm_on_object($user, $page, 'wiki page', 'tiki_p_edit') || ($wiki_creator_admin == 'y' && $user && $info['creator'] == $user))) {
Posted by Helene 06 Dec 2005 04:06 UTC Merci Sylvie. > It was a bug. Fixed in 1.9.3 > > Apply this patch in tiki-editpage.php > change the line > Copy to clipboardif ($tiki_p_admin != 'y' && !$tikilib->user_has_perm_on_object($user, $page, 'wiki page', 'tiki_p_edit')) { > to the line > Copy to clipboardif (!($tiki_p_admin == 'y' || $tikilib->user_has_perm_on_object($user, $page, 'wiki page', 'tiki_p_edit') || ($wiki_creator_admin == 'y' && $user && $info['creator'] == $user))) { >
Posted by Christophe Deprez 25 May 2006 18:52 UTC > It was a bug. Fixed in 1.9.3 > Apply this patch in tiki-editpage.php Shouldn't this feature work also when the page is new (that is, has no creator assigned yet)? How about this patch to 1.9.4 ? Copy to clipboard--- tiki-editpage.php.1.9.4 2006-05-25 14:47:57.000000000 -0400 +++ tiki-editpage.php 2006-05-25 14:23:23.000000000 -0400 @@ -406,7 +406,7 @@ // Permissions // if this page has at least one permission then we apply individual group/page permissions // if not then generic permissions apply - if (!($tiki_p_admin == 'y' || $tiki_p_admin_wiki== 'y' || $tikilib->user_has_perm_on_object($user, $page, 'wiki page', 'tiki_p_edit') || ($wiki_creator_admin == 'y' && $user && $info['creator'] == $user))) { + if (!($tiki_p_admin == 'y' || $tiki_p_admin_wiki== 'y' || $tikilib->user_has_perm_on_object($user, $page, 'wiki page', 'tiki_p_edit') || ($wiki_creator_admin == 'y' && $user && ((!($info['creator'])) || $info['creator'] == $user)))) { $smarty->assign('msg', tra("Permission denied you cannot edit this page")); $smarty->display("error.tpl"); die;