diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-04-11 13:10:33 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-04-11 13:10:33 +0000 |
| commit | 8d797a3e546bcbf509f4eb9e76d1c60e11848787 (patch) | |
| tree | 5e4cb2da284da368d609fb6d335f6abd56925701 /slideshow.php | |
| parent | 1556fdbedb633a99018e883ba0d2241080c00218 (diff) | |
| download | wiki-8d797a3e546bcbf509f4eb9e76d1c60e11848787.tar.gz wiki-8d797a3e546bcbf509f4eb9e76d1c60e11848787.tar.bz2 wiki-8d797a3e546bcbf509f4eb9e76d1c60e11848787.zip | |
rename permissions to new standard using: p_<package>_<verb>_[<noun>]
Diffstat (limited to 'slideshow.php')
| -rwxr-xr-x | slideshow.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/slideshow.php b/slideshow.php index 1b80042..eddb10d 100755 --- a/slideshow.php +++ b/slideshow.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_wiki/slideshow.php,v 1.10 2006/02/23 14:52:03 bitweaver Exp $ + * $Header: /cvsroot/bitweaver/_bit_wiki/slideshow.php,v 1.11 2006/04/11 13:10:33 squareing Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,7 +8,7 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: slideshow.php,v 1.10 2006/02/23 14:52:03 bitweaver Exp $ + * $Id: slideshow.php,v 1.11 2006/04/11 13:10:33 squareing Exp $ * @package wiki * @subpackage functions */ @@ -41,7 +41,7 @@ if (!$gContent->isValid()) { } // Now check permissions to access this page -if (!$gBitUser->hasPermission( 'bit_p_view' )) { +if (!$gBitUser->hasPermission( 'p_wiki_view_page' )) { $gBitSmarty->assign('msg', tra("Permission denied you cannot view this page")); $gBitSystem->display( 'error.tpl' ); @@ -98,11 +98,11 @@ if ($info["flag"] == 'L') { // If not locked and last version is user version then can undo $gBitSmarty->assign('canundo', 'n'); -if ($info["flag"] != 'L' && (($gBitUser->hasPermission( 'bit_p_edit' ) && $info["user"] == $user) || ($gBitUser->hasPermission( 'bit_p_remove' )))) { +if ($info["flag"] != 'L' && (($gBitUser->hasPermission( 'p_wiki_edit_page' ) && $info["user"] == $user) || ($gBitUser->hasPermission( 'p_wiki_remove_page' )))) { $gBitSmarty->assign('canundo', 'y'); } -if ($gBitUser->hasPermission( 'bit_p_admin_wiki' )) { +if ($gBitUser->hasPermission( 'p_wiki_admin' )) { $gBitSmarty->assign('canundo', 'y'); } |
