diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-04-11 13:03:51 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-04-11 13:03:51 +0000 |
| commit | 3708228ac9cf06cce90de4300afb86d3abcaf220 (patch) | |
| tree | fdf720f3afadd8312bba7aa7041a84a1d1a6e7a1 | |
| parent | 694526768bceb6573e3ad16484f61b843bd46b47 (diff) | |
| download | calendar-3708228ac9cf06cce90de4300afb86d3abcaf220.tar.gz calendar-3708228ac9cf06cce90de4300afb86d3abcaf220.tar.bz2 calendar-3708228ac9cf06cce90de4300afb86d3abcaf220.zip | |
rename permissions to new standard using: p_<package>_<verb>_[<noun>]
| -rw-r--r-- | admin/schema_inc.php | 2 | ||||
| -rw-r--r-- | bit_setup_inc.php | 2 | ||||
| -rw-r--r-- | index.php | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php index c1c2634..e52ed54 100644 --- a/admin/schema_inc.php +++ b/admin/schema_inc.php @@ -19,7 +19,7 @@ $gBitInstaller->registerPreferences( KERNEL_PKG_NAME, array( // ### Default User Permissions $gBitInstaller->registerUserPermissions( CALENDAR_PKG_NAME, array( - array('bit_p_view_calendar', 'Can browse the calendar', 'basic', CALENDAR_PKG_NAME), + array('p_calendar_view', 'Can browse the calendar', 'basic', CALENDAR_PKG_NAME), ) ); // this empty table registration is needed for the installer to pick it up to install the preferences diff --git a/bit_setup_inc.php b/bit_setup_inc.php index bb694e5..570f93b 100644 --- a/bit_setup_inc.php +++ b/bit_setup_inc.php @@ -8,7 +8,7 @@ $registerHash = array( $gBitSystem->registerPackage( $registerHash ); if( $gBitSystem->isPackageActive( 'calendar' ) ) { - if( $gBitUser->hasPermission( 'bit_p_view_calendar' ) ) { + if( $gBitUser->hasPermission( 'p_calendar_view' ) ) { $gBitSystem->registerAppMenu( CALENDAR_PKG_NAME, ucfirst( CALENDAR_PKG_DIR ), CALENDAR_PKG_URL.'index.php', 'bitpackage:calendar/menu_calendar.tpl', CALENDAR_PKG_NAME ); } } @@ -1,6 +1,6 @@ <?php -// $Header: /cvsroot/bitweaver/_bit_calendar/index.php,v 1.41 2006/03/01 20:16:03 spiderr Exp $ +// $Header: /cvsroot/bitweaver/_bit_calendar/index.php,v 1.42 2006/04/11 13:03:51 squareing Exp $ // Copyright( c ) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. // All Rights Reserved. See copyright.txt for details and a complete list of authors. @@ -11,7 +11,7 @@ include_once( CALENDAR_PKG_PATH.'Calendar.php' ); $gBitSystem->isPackageActive( 'calendar', TRUE ); -$gBitSystem->verifyPermission( 'bit_p_view_calendar' ); +$gBitSystem->verifyPermission( 'p_calendar_view' ); // set up $_SESSION and $_REQUEST to make the usable later on // setup list of bit items displayed |
