X-Git-Url: https://jasonwoof.com/gitweb/?p=contractor-progress.git;a=blobdiff_plain;f=su.php;h=8f0c6f0abf1eb0771dc083e04f1034c35a5430ae;hp=6f26627427ccf934b9aa1edc545f30f63303376d;hb=HEAD;hpb=98110d79b6536290baffd1468f22cb8b046902cd diff --git a/su.php b/su.php index 6f26627..8f0c6f0 100644 --- 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'; @@ -29,7 +28,6 @@ function su_main() { if($ret) { return $ret; } - tem_show('main_body'); } function _su_main() {