X-Git-Url: https://jasonwoof.com/gitweb/?p=contractor-progress.git;a=blobdiff_plain;f=people.php;h=9a0f3a474b5bb290dbf2ff5b6ce832835c090ba2;hp=1690a4b487b90819097d64134faa1ad39c2c3419;hb=3689b5636b2eb76dc1f920a1b0129e71be1a62b7;hpb=cd31f0e08af5e737de8d25a1c27f62d811345bc2 diff --git a/people.php b/people.php index 1690a4b..9a0f3a4 100644 --- a/people.php +++ b/people.php @@ -70,7 +70,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';