require_once('code/wfpl/format.php');
function su_main() {
- if(!logged_in_as_contractor()) {
+ if(logged_in_as_contractor()) {
+ set_was_contractor();
+ } elseif(!ever_was_contractor()) {
$GLOBALS['url'] = this_url();
message('You must be logged in as an administrator to access that function');
return 'login';