Skip to content

Commit

Permalink
Merge pull request #1284 from helsingborg-stad/fix/remove-faulty-nonce
Browse files Browse the repository at this point in the history
fix: faulty nonce
  • Loading branch information
NiclasNorin authored Jan 23, 2025
2 parents 1e22059 + efffe49 commit 1a4ea6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/UserGroup/AddSelectUserGroupForPrivatePost.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ public function saveUserVisibilitySelect($postId)
return;
}

if ($this->wpService->checkAdminReferer(self::NONCE_ACTION, self::NONCE_NAME) === false) {
return;
}
// if ($this->wpService->checkAdminReferer(self::NONCE_ACTION, self::NONCE_NAME) === false) {
// return;
// }

$metaKey = $this->userGroupRestrictionConfig->getUserGroupVisibilityMetaKey();

Expand Down

0 comments on commit 1a4ea6d

Please sign in to comment.