diff options
author | jim-p <jimp@pfsense.org> | 2010-07-12 16:56:42 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-07-12 16:56:42 -0400 |
commit | 1ed86bc611f6b1885616354ebfa015a6d861f320 (patch) | |
tree | 14a55a8dd8a9ce47dfb766215651938ff9578fb8 /etc/inc | |
parent | 5af2baf71e3a18a8942bcb402f04b878b8f36f35 (diff) | |
download | pfsense-1ed86bc611f6b1885616354ebfa015a6d861f320.zip pfsense-1ed86bc611f6b1885616354ebfa015a6d861f320.tar.gz |
Flip this test around so it is easier to follow/read.
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/auth.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/auth.inc b/etc/inc/auth.inc index 8736c1c..ac9bc9a 100644 --- a/etc/inc/auth.inc +++ b/etc/inc/auth.inc @@ -288,10 +288,10 @@ function local_user_set(& $user) { /* configure shell type */ if (userHasPrivilege($user, "user-shell-access") || userHasPrivilege($user, "page-all")) { $user_shell = "/bin/tcsh"; - } elseif (!userHasPrivilege($user, "user-copy-files")) { - $user_shell = "/sbin/nologin"; - } else { + } elseif (userHasPrivilege($user, "user-copy-files")) { $user_shell = "/usr/local/bin/scponly"; + } else { + $user_shell = "/sbin/nologin"; } /* root user special handling */ |