Adding templatable email confirmation and status messages.
This commit is contained in:
parent
c10bac9bfc
commit
176938baf5
4 changed files with 124 additions and 22 deletions
|
|
@ -26,6 +26,16 @@ sub addSpecialState {
|
|||
return;
|
||||
}
|
||||
|
||||
sub isAdHocUser {
|
||||
my $class = shift;
|
||||
my $user = shift;
|
||||
|
||||
return
|
||||
$user->username eq $user->getId
|
||||
&& !$user->isEnabled;
|
||||
}
|
||||
|
||||
|
||||
sub removeSpecialState {
|
||||
my $self = shift;
|
||||
my $state = shift || croak 'state is required';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue