function _auto_expire_can_user_extend in Auto Expire 5
Same name and namespace in other branches
- 7 auto_expire.module \_auto_expire_can_user_extend()
1 call to _auto_expire_can_user_extend()
File
- ./
auto_expire.module, line 62
Code
function _auto_expire_can_user_extend($node) {
global $user;
return user_access(EXTEND_AUTO_EXPIRE_ALL) || user_access(EXTEND_AUTO_EXPIRE_OWN) && $user->uid > 0 && $node->uid == $user->uid;
}