Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
best-practical
rt-extension-ldapimport-multiemail
Commits
f180b553
Commit
f180b553
authored
Jan 27, 2014
by
Alex Vandiver
Browse files
Only unmerge users made by the LDAP import (the system user)
This allows users to hand-merge additional addresses
parent
aad6c1c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
lib/RT/Extension/LDAPImport/MultiEmail.pm
lib/RT/Extension/LDAPImport/MultiEmail.pm
+2
-0
No files found.
lib/RT/Extension/LDAPImport/MultiEmail.pm
View file @
f180b553
...
...
@@ -90,6 +90,8 @@ sub _import_user {
for
my
$id
(
grep
{
not
$merged
{
$_
}}
@
{
$user
->
GetMergedUsers
->
Content
})
{
my
$alt
=
RT::
User
->
new
(
RT
->
SystemUser
);
$alt
->
LoadOriginal
(
id
=>
$id
);
my
(
$effective_id
)
=
$alt
->
Attributes
->
Named
("
EffectiveId
");
next
unless
$effective_id
->
Creator
==
RT
->
SystemUser
->
id
;
$alt
->
UnMerge
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment