You are here

public function EntityLegalDocument::getPermissionExistingUser in Entity Legal 7

Same name and namespace in other branches
  1. 7.2 entity_legal.entity.inc \EntityLegalDocument::getPermissionExistingUser()

Get the permission name for new users accepting this document.

Return value

string The user permission, used with user_access.

1 call to EntityLegalDocument::getPermissionExistingUser()
EntityLegalDocument::userMustAgree in ./entity_legal.entity.inc
Checks to see if a given user can agree to this document.

File

./entity_legal.entity.inc, line 317
Entity API main classes used by entity_legal module.

Class

EntityLegalDocument
Legal Document entity with revision support.

Code

public function getPermissionExistingUser() {
  return 'legal re-accept ' . $this->name;
}