JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added Switch Login page and link
[contractor-progress.git] / people.php
index 1690a4b..9a0f3a4 100644 (file)
@@ -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';