JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
reorganized main page, and got my name out of the code
[contractor-progress.git] / su.php
diff --git a/su.php b/su.php
index 6f26627..a6acd12 100644 (file)
--- a/su.php
+++ b/su.php
@@ -18,8 +18,7 @@
 require_once('code/wfpl/format.php');
 
 function su_main() {
-       # If you log in to the admin account, you can su to a customer account and still have access to su back to admin. That's why we're checking for admin not "contractor" here.
-       if(!logged_in_as_admin()) {
+       if(!ever_was_contractor()) {
                $GLOBALS['url'] = this_url();
                message('You must be logged in as an administrator to access that function');
                return 'login';