History of ApiChangelog
||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}
||
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}
||