diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-04-11 13:07:07 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-04-11 13:07:07 +0000 |
| commit | 1667ca4794b389b7c80093e845b2fb3879c61cfe (patch) | |
| tree | ad4b366d8e70176d8a8bc1766fed80670adba1cb | |
| parent | c7e7370188bc77c593168ed65c106f3182e4d271 (diff) | |
| download | nexus-1667ca4794b389b7c80093e845b2fb3879c61cfe.tar.gz nexus-1667ca4794b389b7c80093e845b2fb3879c61cfe.tar.bz2 nexus-1667ca4794b389b7c80093e845b2fb3879c61cfe.zip | |
rename permissions to new standard using: p_<package>_<verb>_[<noun>]
| -rw-r--r-- | admin/schema_inc.php | 4 | ||||
| -rw-r--r-- | menu_items.php | 4 | ||||
| -rw-r--r-- | menu_sort.php | 4 | ||||
| -rw-r--r-- | menus.php | 4 | ||||
| -rw-r--r-- | templates/insert_menu_item_inc.tpl | 2 | ||||
| -rw-r--r-- | templates/menu_nexus.tpl | 2 | ||||
| -rw-r--r-- | templates/menus.tpl | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php index d52eca0..d107bbe 100644 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -48,8 +48,8 @@ $gBitInstaller->registerPackageInfo( NEXUS_PKG_NAME, array( // ### Default UserPermissions $gBitInstaller->registerUserPermissions( NEXUS_PKG_NAME, array( - array('bit_p_insert_nexus_item', 'Can insert menu item in a menu while editing a page', 'registered', NEXUS_PKG_NAME), - array('bit_p_create_nexus_menus', 'Can create new menus using Nexus', 'editors', NEXUS_PKG_NAME), + array('p_nexus_insert_item', 'Can insert menu item in a menu while editing a page', 'registered', NEXUS_PKG_NAME), + array('p_nexus_create_menus', 'Can create new menus using Nexus', 'editors', NEXUS_PKG_NAME), ) ); // ### Default Preferences diff --git a/menu_items.php b/menu_items.php index b8ee010..d629e8f 100644 --- a/menu_items.php +++ b/menu_items.php @@ -1,7 +1,7 @@ <?php /** * @author xing <xing@synapse.plus.com> - * @version $Revision: 1.4 $ + * @version $Revision: 1.5 $ * @package nexus * @subpackage functions */ @@ -14,7 +14,7 @@ global $gBitSystem; require_once( NEXUS_PKG_PATH.'Nexus.php'); include_once( NEXUS_PKG_PATH.'menu_lookup_inc.php' ); -$gBitSystem->verifyPermission( 'bit_p_create_nexus_menus' ); +$gBitSystem->verifyPermission( 'p_nexus_create_menus' ); if( empty( $_REQUEST['menu_id'] ) ) { header( 'Location:'.NEXUS_PKG_URL.'index.php' ); diff --git a/menu_sort.php b/menu_sort.php index 6e3cb0f..ab8a0c7 100644 --- a/menu_sort.php +++ b/menu_sort.php @@ -1,7 +1,7 @@ <?php /** * @author xing <xing@synapse.plus.com> - * @version $Revision: 1.3 $ + * @version $Revision: 1.4 $ * @package nexus * @subpackage functions */ @@ -14,7 +14,7 @@ global $gBitSystem; require_once( NEXUS_PKG_PATH.'Nexus.php'); include_once( NEXUS_PKG_PATH.'menu_lookup_inc.php' ); -$gBitSystem->verifyPermission( 'bit_p_create_nexus_menus' ); +$gBitSystem->verifyPermission( 'p_nexus_create_menus' ); if( empty( $_REQUEST['menu_id'] ) ) { header( 'Location:'.NEXUS_PKG_URL.'index.php' ); @@ -1,7 +1,7 @@ <?php /** * @author xing <xing@synapse.plus.com> - * @version $Revision: 1.7 $ + * @version $Revision: 1.8 $ * @package nexus * @subpackage functions */ @@ -15,7 +15,7 @@ require_once( NEXUS_PKG_PATH.'Nexus.php'); include_once( NEXUS_PKG_PATH.'menu_lookup_inc.php' ); $formfeedback = ''; -$gBitSystem->verifyPermission( 'bit_p_create_nexus_menus' ); +$gBitSystem->verifyPermission( 'p_nexus_create_menus' ); if( isset( $_REQUEST['action'] ) ) { if( $_REQUEST['action'] == 'edit' ) { diff --git a/templates/insert_menu_item_inc.tpl b/templates/insert_menu_item_inc.tpl index 8d75e41..f5a773c 100644 --- a/templates/insert_menu_item_inc.tpl +++ b/templates/insert_menu_item_inc.tpl @@ -1,5 +1,5 @@ {strip} -{if $gBitUser->hasPermission( 'bit_p_insert_nexus_item' ) and $nexusList} +{if $gBitUser->hasPermission( 'p_nexus_insert_item' ) and $nexusList} {jstab title="Menu"} {legend legend="Insert in Menu"} {if !$inNexusMenu} diff --git a/templates/menu_nexus.tpl b/templates/menu_nexus.tpl index f5a9e23..9a41476 100644 --- a/templates/menu_nexus.tpl +++ b/templates/menu_nexus.tpl @@ -10,7 +10,7 @@ {else} <li><a class="item" href="{$smarty.const.NEXUS_PKG_URL}menus.php">{biticon ipackage="nexus" iname="menu" iexplain="menus" iforce=icon} Menus</a></li> {/if} - {if $gBitUser->hasPermission('bit_p_admin')} + {if $gBitUser->hasPermission('p_admin')} <li><a class="item" href="{$smarty.const.NEXUS_PKG_URL}admin/nexus_plugins.php">{biticon ipackage="liberty" iname="plugin" iexplain="menus" iforce=icon} Nexus Plugins</a></li> {/if} </ul> diff --git a/templates/menus.tpl b/templates/menus.tpl index 05dfd5c..ba1881d 100644 --- a/templates/menus.tpl +++ b/templates/menus.tpl @@ -39,7 +39,7 @@ {formlabel label="Editable menu" for="editable"} {forminput} {html_checkboxes name="editable" values="1" checked=`$editMenu.editable` labels=false id="editable"} - {formhelp note="Checking this will allow users with the correct permission (bit_p_insert_nexus_item) to add menu items when they are editing content such as a wiki page or a fisheye gallery."} + {formhelp note="Checking this will allow users with the correct permission (p_nexus_insert_item) to add menu items when they are editing content such as a wiki page or a fisheye gallery."} {/forminput} </div> |
