X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fusers.php;h=3f2247042fdd4039c5a0c5b82043108666839dfd;hb=902f1015d874c33bd7946b17de2ad80b4f2144b6;hp=afca5d6c0e9b25e005581db3d8d5affd4a13e8ec;hpb=d3c4d2a51769f355fc09fe9163f04ba4887a8c5d;p=fa-stable.git diff --git a/admin/users.php b/admin/users.php index afca5d6c..3f224704 100644 --- a/admin/users.php +++ b/admin/users.php @@ -9,8 +9,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security=15; -$path_to_root=".."; +$page_security = 'SA_USERS'; +$path_to_root = ".."; include_once($path_to_root . "/includes/session.inc"); page(_("Users")); @@ -141,7 +141,7 @@ while ($myrow = db_fetch($result)) label_cell($myrow["phone"]); email_cell($myrow["email"]); label_cell($last_visit_date, "nowrap"); - label_cell($security_headings[$myrow["full_access"]]); + label_cell($myrow["role"]); if ($not_me) inactive_control_cell($myrow["id"], $myrow["inactive"], 'users', 'id'); @@ -174,7 +174,7 @@ if ($selected_id != -1) $_POST['real_name'] = $myrow["real_name"]; $_POST['phone'] = $myrow["phone"]; $_POST['email'] = $myrow["email"]; - $_POST['Access'] = $myrow["full_access"]; + $_POST['Access'] = $myrow["role_id"]; $_POST['language'] = $myrow["language"]; $_POST['profile'] = $myrow["print_profile"]; $_POST['rep_popup'] = $myrow["rep_popup"]; @@ -211,7 +211,7 @@ text_row_ex(_("Telephone No.:"), 'phone', 30); email_row_ex(_("Email Address:"), 'email', 50); -security_headings_list_row(_("Access Level:"), 'Access', null); +security_roles_list_row(_("Access Level:"), 'Access', null); languages_list_row(_("Language:"), 'language', null);