private function MessageUiPermissions::grantMessageUiPermission in Message UI 7
Grant to the user a specific permission.
Parameters
$operation: The type of operation - create, update, delete or view.
1 call to MessageUiPermissions::grantMessageUiPermission()
- MessageUiPermissions::testMessageUiPermissions in ./
message_ui.test - Test message_access use case.
File
- ./
message_ui.test, line 99
Class
- MessageUiPermissions
- Testing the message access use case.
Code
private function grantMessageUiPermission($operation) {
user_role_grant_permissions($this->rid, array(
$operation . ' a foo message instance',
));
}