History of ApiChangelog
Version 2
ApiChangelog
Changes to the API and source files
Date | Change | Who |
23-DEC-2004 | replace $gTikiUser->hasPermission( 'tiki_p_admin' ) with $gTikiUser->isAdmin() - 3rd party integrations might have different criteria than simply a tiki_p_admin assignment | |
shell commands | {CODE(in=>bash)} | |
find . -name "*.php" -exec perl -i -wpe "s/gTikiUser->hasPermission\( 'tiki_p_admin' \)/gTikiUser->isAdmin()/g" {} \; | ||
{CODE} | ||
23-DEC-2004 | replace $tiki_p_some_perm global vars (in smarty & php) to use $gTikiUser->hasPermission( 'tiki_p_some_perm' ) | |
shell commands | {CODE(in=>bash)} | |
find . -name "*.php" -exec perl -i -wpe "s/\\\$(tiki_p_A-Za-z_*) != 'y'/\!\\\$gTikiUser->hasPermission( '\1' )/g" {} \; | ||
find . -name "*.php" -exec perl -i -wpe "s/\\\$(tiki_p_A-Za-z_*) == 'y'/\\\$gTikiUser->hasPermission( '\1' )/g" {} \; | ||
find . -name "*.tpl" -exec perl -i -wpe "s/(tiki_p_A-Za-z_*) (eq | ==) 'y'/gTikiUser->hasPermission( '\1' )/g" {} \; | |
{CODE} |