65 $user_access =
$user->elgg_default_access;
66 if ($user_access !== null) {
67 $default_access = (int) $user_access;
73 'default_access' => $default_access,
148 $acl = new \ElggAccessCollection();
153 return $acl->save() ? $acl : null;
197 return _elgg_services()->accessCollections->getReadableAccessLevel($entity_access_id);
elgg_call(int $flags, Closure $closure)
Calls a callable autowiring the arguments using public DI services and applying logic based on flags...
elgg_get_default_access(\ElggUser $user=null, array $input_params=[])
Gets the default access permission.
if(!$user||!$user->canDelete()) $name
elgg_get_write_access_array(int $user_guid=0, bool $flush=false, array $input_params=[])
Returns an array of access permissions that the user is allowed to save content with.
elgg_get_ignore_access()
Functions for Elgg's access system for entities, metadata, and annotations.
if($who_can_change_language=== 'nobody') elseif($who_can_change_language=== 'admin_only'&&!elgg_is_admin_logged_in()) $options
const ELGG_IGNORE_ACCESS
elgg_call() flags
elgg_get_access_collections(array $options=[])
Returns access collections.
elgg_has_access_to_entity(int $entity_guid, int $user_guid=0)
Can a user access an entity.
elgg_get_readable_access_level(int $entity_access_id)
Return the name of an ACCESS_* constant or an access collection, but only if the logged in user has w...
elgg_get_access_array(int $user_guid=0)
Returns an array of access IDs a user is permitted to see.
_elgg_services()
Get the global service provider.
elgg_create_access_collection(string $name, int $owner_guid=0, string $subtype=null)
Creates a new access collection.
elgg_get_access_collection(int $collection_id)
Get a specified access collection.