1.20.x userinterface.inc public UserInterface::access($op, $account = NULL)

Determines whether the given user has access to this entity.

Parameters

string $op: The operation being performed. One of 'view', 'update', 'create' or 'delete'.

User|AnonymousUser|object $account: (optional) The user to check for. Leave it to NULL to check for the global user.

Return value

bool: Whether access is allowed or not. If the entity type does not specify any access information, NULL is returned.

File

includes/userinterface.inc, line 59
Provides the interface for user entities.

Class

UserInterface
Defines a common interface for user entities.

Code

public function access($op, $account = NULL);