Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
contractor-progress.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stop showing tiny agreement to contractor when he switches users
[contractor-progress.git]
/
su.php
diff --git
a/su.php
b/su.php
index
0c45cf1
..
2ff23ae
100644
(file)
--- a/
su.php
+++ b/
su.php
@@
-18,7
+18,9
@@
require_once('code/wfpl/format.php');
function su_main() {
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';
$GLOBALS['url'] = this_url();
message('You must be logged in as an administrator to access that function');
return 'login';