diff options
author | ivan <ivan> | 2009-12-18 00:41:34 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-12-18 00:41:34 +0000 |
commit | 2dfda73eeb3eae2d4f894099754794ef07d060dd (patch) | |
tree | 5486a76d4557f05ed1420da42ec4edbe5b748f04 /rt/lib/RT/Interface/Web.pm | |
parent | 8103c1fc1b2c27a6855feadf26f91b980a54bc52 (diff) |
import rt 3.6.10
Diffstat (limited to 'rt/lib/RT/Interface/Web.pm')
-rw-r--r-- | rt/lib/RT/Interface/Web.pm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/rt/lib/RT/Interface/Web.pm b/rt/lib/RT/Interface/Web.pm index bc63f7cb5..4e5fca151 100644 --- a/rt/lib/RT/Interface/Web.pm +++ b/rt/lib/RT/Interface/Web.pm @@ -2,7 +2,7 @@ # # COPYRIGHT: # -# This software is Copyright (c) 1996-2007 Best Practical Solutions, LLC +# This software is Copyright (c) 1996-2009 Best Practical Solutions, LLC # <jesse@bestpractical.com> # # (Except where explicitly superseded by other copyright notices) @@ -24,7 +24,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA # 02110-1301 or visit their web page on the internet at -# http://www.gnu.org/copyleft/gpl.html. +# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html. # # # CONTRIBUTION SUBMISSION POLICY: @@ -153,7 +153,12 @@ sub WebExternalAutoInfo { my %user_info; - $user_info{'Privileged'} = 1; + # default to making Privileged users, even if they specify + # some other default Attributes + if (!$RT::AutoCreate || + ( ref($RT::AutoCreate) && not exists $RT::AutoCreate->{Privileged})) { + $user_info{'Privileged'} = 1; + } if ($^O !~ /^(?:riscos|MacOS|MSWin32|dos|os2)$/) { # Populate fields with information from Unix /etc/passwd |