Added isVisitor, isAdmin, and isRegistered methods to User object instead
of hard coding checks everywhere with group ids. And updated the code base to match.
This commit is contained in:
parent
586164d8d0
commit
ef120fb06b
52 changed files with 201 additions and 118 deletions
|
|
@ -86,7 +86,7 @@ sub execute {
|
|||
# get user object
|
||||
$eh->info("Getting user $userId");
|
||||
my $user = WebGUI::User->new($self->session, $userId);
|
||||
next if ($user->userId eq "1");
|
||||
next if ($user->isVisitor);
|
||||
my $emailAddress = $user->profileField("email");
|
||||
next if ($emailAddress eq "");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue