File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ function replacePrefix($name, $dataRecord) {
5656function getClientName ($ dataRecord ) {
5757 global $ app , $ conf ;
5858
59- if ($ _SESSION ["s " ]["user " ]["typ " ] != 'admin ' && ! $ app ->auth ->has_clients ($ _SESSION ['s ' ]['user ' ]['userid ' ])) {
59+ if ($ _SESSION ["s " ]["user " ]["typ " ] != 'admin ' || $ app ->auth ->has_clients ($ _SESSION ['s ' ]['user ' ]['userid ' ])) {
6060 // Get the group-id of the user
6161 $ client_group_id = $ _SESSION ["s " ]["user " ]["default_group " ];
6262 } else {
@@ -82,7 +82,7 @@ function getClientName($dataRecord) {
8282function getClientID ($ dataRecord ) {
8383 global $ app , $ conf ;
8484
85- if ($ _SESSION ["s " ]["user " ]["typ " ] != 'admin ' && ! $ app ->auth ->has_clients ($ _SESSION ['s ' ]['user ' ]['userid ' ])) {
85+ if ($ _SESSION ["s " ]["user " ]["typ " ] != 'admin ' || $ app ->auth ->has_clients ($ _SESSION ['s ' ]['user ' ]['userid ' ])) {
8686 // Get the group-id of the user
8787 $ client_group_id = $ _SESSION ["s " ]["user " ]["default_group " ];
8888 } else {
You can’t perform that action at this time.
0 commit comments