X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=su.php;h=8f0c6f0abf1eb0771dc083e04f1034c35a5430ae;hb=2377222b2e275d7e954e23b53b60c32c476aeea3;hp=d777117dd70c86a78fbdd0eda381a35545fdd036;hpb=f78460b6d888bb82adebd32931d707792bc77710;p=contractor-progress.git diff --git a/su.php b/su.php index d777117..8f0c6f0 100644 --- a/su.php +++ b/su.php @@ -18,9 +18,7 @@ require_once('code/wfpl/format.php'); function su_main() { - if(logged_in_as_contractor()) { - set_was_contractor(); - } elseif(!ever_was_contractor()) { + if(!ever_was_contractor()) { $GLOBALS['url'] = this_url(); message('You must be logged in as an administrator to access that function'); return 'login'; @@ -30,7 +28,6 @@ function su_main() { if($ret) { return $ret; } - tem_show('main_body'); } function _su_main() {