function video_access in Video 6.2
Same name and namespace in other branches
- 5 video.module \video_access()
- 6 video.module \video_access()
access hook
File
- ./
video.module, line 488 - video.module
Code
function video_access($op, $node, $account) {
if ($op == 'create') {
return user_access('create video', $account);
}
if ($op == 'update' || $op == 'delete') {
return user_access('edit own video', $account) && $account->uid == $node->uid || user_access('edit all video nodes', $account);
}
}