Commit 3fc6e37f authored by Jonny Bradley's avatar Jonny Bradley

[FIX] perms: Check object perms for rename (and no longer any need to set...

[FIX] perms: Check object perms for rename (and no longer any need to set global perm vars with get_perm_object fn)
parent 0b9101e6
......@@ -32,8 +32,7 @@ if (!($info = $tikilib->get_page_info($page))) {
die;
}
// Now check permissions to rename this page
$tikilib->get_perm_object($page, 'wiki page', $info);
$access->check_permission(array('tiki_p_view', 'tiki_p_rename'));
$access->check_permission(array('view', 'rename'), tr('Rename wiki page'), 'wiki page', $page);
if (isset($_REQUEST["rename"]) || isset($_REQUEST["confirm"])) {
check_ticket('rename-page');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment