class ACKNodeAuthor in Access Control Kit 7
Controls access to a node based on its author.
Hierarchy
- class \AccessControlKitHandler implements AccessControlKitHandlerInterface
- class \ACKNodeAuthor
Expanded class hierarchy of ACKNodeAuthor
1 string reference to 'ACKNodeAuthor'
- AckNodeAccessTest::testAuthorAccess in ack_node/
ack_node.test - Test controlling access by author.
File
- ack_node/
handlers/ ack_node_author.inc, line 11 - Contains the handler class for the author property on nodes.
View source
class ACKNodeAuthor extends AccessControlKitHandler {
/**
* Overrides AccessControlKitHandler::description().
*/
public function description() {
return t('Allows you to grant a user access to content authored by certain other users (for example, User A could be granted access to all content written by Users B, C, and D).');
}
/**
* Overrides AccessControlKitHandler::objectRealms().
*/
public function objectRealms($object_type, $node) {
return array(
$node->uid,
);
}
}