* TRUE if user is allowed access content, otherwise FALSE.
*/
function_photos_access($op,$value){
$user=\Drupal::currentUser();
switch($op){
case'viewUser':
return($value->id()&&$value->hasPermission('create photo')||\Drupal::currentUser()->hasPermission('access user profiles')&&\Drupal::currentUser()->hasPermission('view photo'));