function CourseObjectNode::revoke in Course 7
Same name and namespace in other branches
- 6 includes/course_object.core.inc \CourseObjectNode::revoke()
Duration expired (or something) - CourseObject is telling us so.
@todo this needs to move to a fulfillment class because getUser() in this context is deprecated
Overrides CourseObject::revoke
File
- includes/
CourseObjectNode.inc, line 313
Class
- CourseObjectNode
- A course object that uses a node as a base.
Code
function revoke() {
if ($this
->hasNodePrivacySupport()) {
if ($this
->getOption('private')) {
$uid = $this->user->uid;
module_load_include('inc', 'content_access', 'content_access.admin');
$acl_id = content_access_get_acl_id($this->node, 'view');
acl_remove_user($acl_id, $uid);
node_access_acquire_grants($this->node);
}
}
}