Task #1215 - Administrateur globaux phpcompta n'a pas accès à tous les profiles

#1215 : security , filter the profiles ,
This commit is contained in:
Dany De Bontridder 2015-11-06 18:44:29 +01:00
parent d55cee1640
commit 4b00276e82
3 changed files with 44 additions and 5 deletions

View file

@ -48,9 +48,7 @@ $profile->value=$cn->make_array("select p_id as value, ".
" from profile "
. "where "
. "p_id in "
. " (select p_granted "
. " from user_sec_action_profile "
. " where ua_right='W' and p_id=".$g_user->get_profile().") "
. $g_user->get_writable_profile()
. "order by 2");
// priority