diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-04-11 13:05:42 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-04-11 13:05:42 +0000 |
| commit | 319a92e0b6f31912a122445147c680bd50f948a0 (patch) | |
| tree | ec784003261607e2e92b8ef5ee3454d9c30ff067 /edit_storage_inc.php | |
| parent | 1a6090edc5328259c9ec4d2e1edd8dce07ce2347 (diff) | |
| download | liberty-319a92e0b6f31912a122445147c680bd50f948a0.tar.gz liberty-319a92e0b6f31912a122445147c680bd50f948a0.tar.bz2 liberty-319a92e0b6f31912a122445147c680bd50f948a0.zip | |
rename permissions to new standard using: p_<package>_<verb>_[<noun>]
Diffstat (limited to 'edit_storage_inc.php')
| -rw-r--r-- | edit_storage_inc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/edit_storage_inc.php b/edit_storage_inc.php index 760df61..0f698d3 100644 --- a/edit_storage_inc.php +++ b/edit_storage_inc.php @@ -3,7 +3,7 @@ * edit_storage_inc * * @author spider <spider@steelsun.com> - * @version $Revision: 1.9 $ + * @version $Revision: 1.10 $ * @package liberty * @subpackage functions * @@ -35,7 +35,7 @@ if( !empty( $_REQUEST['deleteAttachment'] ) ) { $siblingAttachments = $gContent->getSiblingAttachments( $attachmentId ); $attachmentInfo = $gContent->getAttachment( $attachmentId ); - if( count( $siblingAttachments ) > 0 || ( !$gBitUser->isAdmin() && $gBitUser->mUserId != $attachmentInfo['user_id'] && $gBitUser->mPerms['bit_p_detach_attachment'] == 'y' ) ) { + if( count( $siblingAttachments ) > 0 || ( !$gBitUser->isAdmin() && $gBitUser->mUserId != $attachmentInfo['user_id'] && $gBitUser->mPerms['p_liberty_detach_attachment'] == 'y' ) ) { // Other liberty_attachment rows reference the same foreign_id so we should just detach $gContent->detachAttachment( $attachmentId ); } else { @@ -45,7 +45,7 @@ if( !empty( $_REQUEST['deleteAttachment'] ) ) { $attachmentId = $_REQUEST['detachAttachment']; $attachmentInfo = $gContent->getAttachment( $attachmentId ); - if( $gBitUser->isAdmin() || $gBitUser->mPerms['bit_p_detach_attachment'] == 'y' || $attachmentInfo['user_id'] == $gBitUser->mUserId ) { + if( $gBitUser->isAdmin() || $gBitUser->mPerms['p_liberty_detach_attachment'] == 'y' || $attachmentInfo['user_id'] == $gBitUser->mUserId ) { $gContent->detachAttachment( $attachmentId ); } } |
