Skip to content

Commit

Permalink
Merge pull request #28852 from colemanw/checkAccessHelp
Browse files Browse the repository at this point in the history
[NFC] Fix docblock reference in _checkAccess functions
  • Loading branch information
artfulrobot authored Jan 3, 2024
2 parents 5bc4217 + 20ef3cd commit 74ee2b3
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CRM/Contact/AccessTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ trait CRM_Contact_AccessTrait {
* @param array $record
* @param int $userID
* @return bool
* @see CRM_Core_DAO::checkAccess
* @see \Civi\Api4\Utils\CoreUtil::checkAccessRecord
*/
public static function _checkAccess(string $entityName, string $action, array $record, int $userID) {
$cid = $record['contact_id'] ?? NULL;
Expand Down
2 changes: 1 addition & 1 deletion CRM/Contact/BAO/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -3593,7 +3593,7 @@ public static function getEntityRefFilters() {
* @param array $record
* @param $userID
* @return bool
* @see CRM_Core_DAO::checkAccess
* @see \Civi\Api4\Utils\CoreUtil::checkAccessRecord
*/
public static function _checkAccess(string $entityName, string $action, array $record, $userID): bool {
switch ($action) {
Expand Down
2 changes: 1 addition & 1 deletion CRM/Contact/BAO/ContactType.php
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ public static function getContactType(string $name): ?array {
* @param array $record
* @param $userID
* @return bool
* @see CRM_Core_DAO::checkAccess
* @see \Civi\Api4\Utils\CoreUtil::checkAccessRecord
*/
public static function _checkAccess(string $entityName, string $action, array $record, $userID): bool {
// Only records with a parent may be deleted
Expand Down
2 changes: 1 addition & 1 deletion CRM/Contact/BAO/Group.php
Original file line number Diff line number Diff line change
Expand Up @@ -1446,7 +1446,7 @@ public static function filterActiveGroups($parentArray) {
* @param array $record
* @param $userID
* @return bool
* @see CRM_Core_DAO::checkAccess
* @see \Civi\Api4\Utils\CoreUtil::checkAccessRecord
*/
public static function _checkAccess(string $entityName, string $action, array $record, $userID): bool {
switch ($action) {
Expand Down
2 changes: 1 addition & 1 deletion CRM/Contact/BAO/Relationship.php
Original file line number Diff line number Diff line change
Expand Up @@ -2271,7 +2271,7 @@ protected static function updateMembershipsByRelationship(array $params, CRM_Con
* @param array $record
* @param int $userID
* @return bool
* @see CRM_Core_DAO::checkAccess
* @see \Civi\Api4\Utils\CoreUtil::checkAccessRecord
*/
public static function _checkAccess(string $entityName, string $action, array $record, int $userID): bool {
// Delegate relationship permissions to contacts a & b
Expand Down
2 changes: 1 addition & 1 deletion CRM/Core/DynamicFKAccessTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ trait CRM_Core_DynamicFKAccessTrait {
* @param array $record
* @param int $userID
* @return bool
* @see CRM_Core_DAO::checkAccess
* @see \Civi\Api4\Utils\CoreUtil::checkAccessRecord
*/
public static function _checkAccess(string $entityName, string $action, array $record, int $userID): bool {
$eid = $record['entity_id'] ?? NULL;
Expand Down
2 changes: 1 addition & 1 deletion CRM/Event/BAO/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -2194,7 +2194,7 @@ public static function getAllPermissions() {
* @param array $record
* @param int $userID
* @return bool
* @see CRM_Core_DAO::checkAccess
* @see \Civi\Api4\Utils\CoreUtil::checkAccessRecord
*/
public static function _checkAccess(string $entityName, string $action, array $record, $userID): bool {
switch ($action) {
Expand Down
2 changes: 1 addition & 1 deletion ext/oauth-client/CRM/OAuth/BAO/OAuthContactToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public static function del($id) {
* @param array $record
* @param $userId
* @return bool
* @see CRM_Core_DAO::checkAccess
* @see \Civi\Api4\Utils\CoreUtil::checkAccessRecord
*/
public static function _checkAccess(string $entityName, string $action, array $record, $userId): bool {
try {
Expand Down
2 changes: 1 addition & 1 deletion ext/standaloneusers/CRM/Standaloneusers/BAO/Role.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static function self_hook_civicrm_post(\Civi\Core\Event\PostEvent $event)
* @param array $record
* @param integer|null $userID
* @return boolean
* @see CRM_Core_DAO::checkAccess
* @see \Civi\Api4\Utils\CoreUtil::checkAccessRecord
*/
public static function _checkAccess(string $entityName, string $action, array $record, ?int $userID): bool {
// Prevent users from updating or deleting the admin and everyone roles
Expand Down
2 changes: 1 addition & 1 deletion ext/standaloneusers/CRM/Standaloneusers/BAO/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static function getTimeZones(): array {
* @param array $record
* @param integer|null $userID
* @return boolean
* @see CRM_Core_DAO::checkAccess
* @see \Civi\Api4\Utils\CoreUtil::checkAccessRecord
*/
public static function _checkAccess(string $entityName, string $action, array $record, ?int $userID): bool {
// Prevent users from deleting their own user account
Expand Down

0 comments on commit 74ee2b3

Please sign in to comment.