Commit e8f8c397 authored by Martyn Smith's avatar Martyn Smith Committed by Martyn Smith
Browse files

Check for admin when determining whether a user can look at a view

parent a891d62a
......@@ -1093,6 +1093,12 @@ function can_view_view($view_id, $user_id=null) {
return true;
}
// check admin
if (get_field('usr', 'admin', 'id', $user_id)) {
log_debug('Yes - You are a site administrator');
return true;
}
log_debug('No - nothing matched');
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment