Loading...
 
Skip to main content

Features / Usability


Page autors can admin their page not working?

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

It was a bug. Fixed in 1.9.3

Apply this patch in tiki-editpage.php
change the line

Image
Copy to clipboard
if ($tiki_p_admin != 'y' && !$tikilib->user_has_perm_on_object($user, $page, 'wiki page', 'tiki_p_edit')) {

to the line

Image
Copy to clipboard
if (!($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))) {

Merci Sylvie.

> It was a bug. Fixed in 1.9.3
>
> Apply this patch in tiki-editpage.php
> change the line

> Image
Copy to clipboard
if ($tiki_p_admin != 'y' && !$tikilib->user_has_perm_on_object($user, $page, 'wiki page', 'tiki_p_edit')) {

> to the line

> Image
Copy to clipboard
if (!($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))) {

>

> 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;