2010-08-31 Sergio Martin <sergio.martin@artica.es>

* extensions/update_manager.php: Removed the update
	manager extension from the menu if the user
	doesnt have PM permissions



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3200 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
zarzuelo 2010-08-31 09:21:45 +00:00
parent 08ae1e76dd
commit 6ff4d641b0
2 changed files with 15 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2010-08-31 Sergio Martin <sergio.martin@artica.es>
* extensions/update_manager.php: Removed the update
manager extension from the menu if the user
doesnt have PM permissions
2010-08-31 Sergio Martin <sergio.martin@artica.es>
* extensions/users_connected.php: Clean code and added

View File

@ -123,11 +123,15 @@ function pandora_update_manager_godmode () {
require_once ('update_manager/settings.php');
}
add_operation_menu_option (__('Update manager'));
add_godmode_menu_option (__('Update manager settings'), 'PM','gsetup');
add_extension_main_function ('pandora_update_manager_main');
add_extension_godmode_function ('pandora_update_manager_godmode');
add_extension_login_function ('pandora_update_manager_login');
if(isset($config['id_user'])) {
if (give_acl ($config['id_user'], 0, "PM")) {
add_operation_menu_option (__('Update manager'));
add_godmode_menu_option (__('Update manager settings'), 'PM','gsetup');
add_extension_main_function ('pandora_update_manager_main');
add_extension_godmode_function ('pandora_update_manager_godmode');
add_extension_login_function ('pandora_update_manager_login');
}
}
$db = NULL;