function webform_access in Webform 5
Same name and namespace in other branches
- 5.2 webform.module \webform_access()
- 6.2 webform.module \webform_access()
Implemenation of hook_access().
File
- ./
webform.module, line 203
Code
function webform_access($op, $node) {
global $user;
switch ($op) {
case "create":
return user_access("create webforms");
case "update":
case "delete":
return user_access("edit webforms") || user_access("edit own webforms") && $user->uid == $node->uid;
}
}