2013-04-03 Junichi Satoh <junichi@rworks.jp>
* godmode/alerts/alert_actions.php: Fixed that any groups are shown to all users even if user has no permission to access the group. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7918 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
5e02872d94
commit
d37b1e5721
|
@ -1,3 +1,8 @@
|
|||
2013-04-03 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* godmode/alerts/alert_actions.php: Fixed that any groups are shown
|
||||
to all users even if user has no permission to access the group.
|
||||
|
||||
2013-04-03 Junichi Satoh <junichi@rworks.jp>
|
||||
|
||||
* extras/pandoradb_migrate_4.0.x_to_5.0.postgreSQL.sql,
|
||||
|
|
|
@ -344,7 +344,11 @@ $table->align[1] = 'center';
|
|||
$table->align[2] = 'center';
|
||||
$table->align[3] = 'center';
|
||||
|
||||
$actions = db_get_all_rows_in_table ('talert_actions');
|
||||
$filter = array();
|
||||
if (!is_user_admin($config['id_user']))
|
||||
$filter['id_group'] = array_keys(users_get_groups(false, "LM"));
|
||||
|
||||
$actions = db_get_all_rows_filter ('talert_actions', $filter);
|
||||
if ($actions === false)
|
||||
$actions = array ();
|
||||
|
||||
|
|
Loading…
Reference in New Issue