You are here

public function EntityLegalDocument::getPermissionView in Entity Legal 7.2

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

Get the permission name for any user viewing this agreement.

Return value

string The user permission, used with user_access.

File

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

Class

EntityLegalDocument
Legal Document entity with revision support.

Code

public function getPermissionView() {
  return 'legal view ' . $this->name;
}