You are here

function imagecrop_has_access in Image javascript crop 7

Check if the current user has one of the required permissions.

1 string reference to 'imagecrop_has_access'
imagecrop_menu in ./imagecrop.module
Implements hook_menu().

File

./imagecrop.module, line 486
Provides a javascript toolbox through an imagecache action.

Code

function imagecrop_has_access() {
  return user_access('crop any image') || user_access('crop own images');
}