my $user = $c->user_exists ? $c->user->get_object : undef;
if( $user ) {
$c->stash->{'permission'} = 'full'
- if( $user->is_admin || $tradition->user->id eq $user->id );
+ if( $user->is_admin ||
+ ( $tradition->has_user && $tradition->user->id eq $user->id ) );
return 1;
}
# Is it public?
my $user = $c->user_exists ? $c->user->get_object : undef;
if( $user ) {
$c->stash->{'permission'} = 'full'
- if( $user->is_admin || $tradition->user->id eq $user->id );
+ if( $user->is_admin ||
+ ( $tradition->has_user && $tradition->user->id eq $user->id ) );
return 1;
}
# Is it public?