function reviews_has_edit_permission in Reviews 7
Callback function to check if user is logged in and has edit review permissions.
1 string reference to 'reviews_has_edit_permission'
- reviews_menu in ./
reviews.module - Implements hook_menu().
File
- ./
reviews.module, line 135 - This file defines all the necessary hooks and functions to create a system for enabling and authoring content reviews on a per content type basis.
Code
function reviews_has_edit_permission() {
return user_access('edit reviews') && user_is_logged_in();
}