Skip to content

Commit

Permalink
Fixed issue #17717: Saving survey group permissions fails with error …
Browse files Browse the repository at this point in the history
…if auditlog plugin is active (#2141)

Dev Method getPermissionSet() expects camelcase entity name.
  • Loading branch information
vits committed Nov 13, 2021
1 parent f79b5f4 commit f1c836a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/core/plugins/AuditLog/AuditLog.php
Expand Up @@ -197,7 +197,7 @@ public function beforePermissionSetSave()
$iSurveyID = $event->get('iSurveyID');
$iUserID = $event->get('iUserID');
$oCurrentUser = $this->api->getCurrentUser();
$oOldPermission = $this->api->getPermissionSet($iUserID, $iSurveyID, 'survey');
$oOldPermission = $this->api->getPermissionSet($iUserID, $iSurveyID, 'Survey');
$sAction = 'update'; // Permissions are in general only updated (either you have a permission or you don't)

if (count(array_diff_assoc_recursive($aNewPermissions, $oOldPermission))) {
Expand Down

0 comments on commit f1c836a

Please sign in to comment.