Skip to content
Snippets Groups Projects
Verified Commit 98ea2c9d authored by Damien's avatar Damien
Browse files

FEAT #7721 Creation for superadmin

parent 03b51365
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ class ContactGroupController ...@@ -64,7 +64,7 @@ class ContactGroupController
$data['public'] = $data['public'] ? 'true' : 'false'; $data['public'] = $data['public'] ? 'true' : 'false';
$data['owner'] = $GLOBALS['userId']; $data['owner'] = $GLOBALS['userId'];
$data['entity_owner'] = UserModel::getPrimaryEntityByUserId(['userId' => $GLOBALS['userId']])['entity_id']; $data['entity_owner'] = ($GLOBALS['userId'] == 'superadmin' ? 'superadmin' : UserModel::getPrimaryEntityByUserId(['userId' => $GLOBALS['userId']])['entity_id']);
$id = ContactGroupModel::create($data); $id = ContactGroupModel::create($data);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment