function fb_permission_access_own in Drupal for Facebook 6.3
Same name and namespace in other branches
- 6.2 contrib/fb_permission.module \fb_permission_access_own()
- 7.3 contrib/fb_permission.module \fb_permission_access_own()
Helper function for menu item access check.
1 string reference to 'fb_permission_access_own'
- fb_permission_user in contrib/
fb_permission.module - Implementation of hook_user.
File
- contrib/
fb_permission.module, line 15 - Code pertaining to Facebook's extended permissions. see http://wiki.developers.facebook.com/index.php/Extended_permissions
Code
function fb_permission_access_own($account, $perm) {
if (fb_facebook_user()) {
return $GLOBALS['user']->uid == $account->uid && user_access($perm);
}
}