X-Git-Url: https://jasonwoof.com/gitweb/?p=contractor-progress.git;a=blobdiff_plain;f=people.php;h=60e3121c7914f4904ad2c633b3693a1a9a7a1cc0;hp=1690a4b487b90819097d64134faa1ad39c2c3419;hb=ee6685eef368fdd21c4916b32a0ad26880146cce;hpb=1bcde3c6ba88a93deaa0848df4de0b0857d9bf49 diff --git a/people.php b/people.php index 1690a4b..60e3121 100644 --- a/people.php +++ b/people.php @@ -1,21 +1,20 @@ . + define('PEOPLE_DB_FIELDS', 'username,password,name,privs,balance'); @@ -70,7 +69,7 @@ function people_display_listing($where = 'order by username limit 100') { } function people_main() { - if(logged_in() != 1) { # FIXME get more sophisticated than first person in database is admin + if(!logged_in_as_contractor()) { $GLOBALS['url'] = this_url(); message('You must be logged in as an administrator to access that function'); return 'login';