15 |
my $self = shift; |
my $self = shift; |
16 |
my %args = (@_); |
my %args = (@_); |
17 |
|
|
|
warn "_init"; |
|
|
|
|
18 |
if ( delete $args{'_bootstrap'} ) { |
if ( delete $args{'_bootstrap'} ) { |
19 |
$self->is_bootstrap_user(1); |
$self->is_bootstrap_user(1); |
20 |
} elsif( keys %args ) { |
} elsif( keys %args ) { |
32 |
role => 'admin', |
role => 'admin', |
33 |
); |
); |
34 |
if ($r->id) { |
if ($r->id) { |
35 |
warn "turn on AdminMode for ", $self->current_user->user_object->email, $/; |
Jifty->log->debug("turn on AdminMode for ", $self->current_user->user_object->email); |
36 |
$self->is_superuser(1); |
$self->is_superuser(1); |
37 |
} |
} |
38 |
} |
} |
65 |
role => $role |
role => $role |
66 |
); |
); |
67 |
|
|
68 |
warn "role is '$role' for ", $self->current_user->user_object->email, " ", |
Jifty->log->debug("role is '$role' for ", |
69 |
$r->id ? 'OK' : 'DENY', $/; |
$self->current_user->user_object->email, " ", |
70 |
|
$r->id ? 'OK' : 'DENY' |
71 |
|
); |
72 |
|
|
73 |
return $r->id; |
return $r->id; |
74 |
} |
} |