Function CMSPermissionsScannerWindows->has_read_access

Definitions

sources/file_permissions_check.php

  • Find if read access is set for the given ACL for the given user.
  • Visibility: protected
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$users array No No required parameter N/A N/A Users to check for
$acl array No No required parameter N/A N/A The ACL for the file
&$permissions_involved array Yes No required parameter N/A N/A A list of permissions involved, returned by reference
&$due_to_inheritance boolean Yes No required parameter N/A N/A Whether the result given is due to inheritance, returned by reference
&$sid_used ?string Yes No required parameter N/A N/A The SID we ended up using, returned by reference (null: none)
$check_flags integer No No required parameter N/A N/A The flags specifying how to do our checks

Returns

  • Whether it is
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Find if read access is set for the given ACL for the given user.
 *
 * @param  array $users Users to check for
 * @param  array $acl The ACL for the file
 * @param  array $permissions_involved A list of permissions involved, returned by reference
 * @param  boolean $due_to_inheritance Whether the result given is due to inheritance, returned by reference
 * @param  ?string $sid_used The SID we ended up using, returned by reference (null: none)
 * @param  integer $check_flags The flags specifying how to do our checks
 * @return boolean Whether it is
 */

protected function has_read_access(array $users, array $acl, array &$permissions_involved, bool &$due_to_inheritance, ?string &$sid_used, int $check_flags) : bool