Commit 30da76b6 authored by kiz_0987's avatar kiz_0987

#45159 - Only show Drupal-G2 sync status to 'administer users' access users

parent 4973b548
......@@ -156,7 +156,7 @@ function gallery_modify_user($user, $action = 'create') {
*/
function gallery_view_user($user) {
$g2_userinfo = gallery_user_info($user, true);
if ($g2_userinfo['error_msg']) {
if (($g2_userinfo['error_msg']) && (user_access('administer users'))) {
$form['gallery_view_user'] = array(
'title' => t('Gallery2-Drupal Sync Status'),
'value' => implode(',<br />', $g2_userinfo['error_msg']) . '<br />');
......
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