Ignore:
Timestamp:
Dec 12, 2013, 10:51:47 AM (7 years ago)
Author:
plg
Message:

feature 1668: hide "delete" link for protected users, hide "change username" and "email address" for guest

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/user_list.php

    r25282 r25928  
    9191  );
    9292
    93 // echo '<pre>'; print_r($users); echo '</pre>';
     93$default_user = get_default_user_info(true);
    9494
    95 $default_user = get_default_user_info(true);
     95$protected_users = array(
     96  $user['id'],
     97  $conf['guest_id'],
     98  $conf['default_user_id'],
     99  $conf['webmaster_id'],
     100  );
    96101
    97102$template->assign(
     
    105110    'language_selected' => get_default_language(),
    106111    'association_options' => $groups,
     112    'protected_users' => implode(',', array_unique($protected_users)),
     113    'guest_user' => $conf['guest_id'],
    107114    )
    108115  );
Note: See TracChangeset for help on using the changeset viewer.