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
added Switch Login page and link
[contractor-progress.git]
/
people.php
diff --git
a/people.php
b/people.php
index
1690a4b
..
9a0f3a4
100644
(file)
--- a/
people.php
+++ b/
people.php
@@
-70,7
+70,7
@@
function people_display_listing($where = 'order by username limit 100') {
}
function people_main() {
}
function people_main() {
- if(logged_in() != 1) { # FIXME get more sophisticated than first person in database is admin
+ if(!logged_in_as_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';