public function EntityLegalDocument::getPermissionView in Entity Legal 7
Same name and namespace in other branches
- 7.2 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 307 - 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;
}