Skip to content

Commit 90e5ac3

Browse files
committedApr 4, 2024·
fix logic again
1 parent 4f153ab commit 90e5ac3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎lib/Sparky/Security.rakumod

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ sub check-user (Mu $user, Mu $token, $project?) is export {
3636
$list<projects>{$project}<allow>.Set{$user} {
3737
say "check-user: allow user [$user] to build project [$project] on project allow basis";
3838
return True;
39-
} elsif $project &&
39+
} elsif
4040
$list<global><deny><users> &&
4141
$list<global><deny><users>.isa(List) &&
4242
$list<global><deny>.Set{$user} {
4343
say "check-user: deny user [$user] build project [$project] on global deny basis";
4444
return False;
45-
} elsif !$project &&
45+
} elsif
4646
$list<global><allow><users> &&
4747
$list<global><allow><users>.isa(List) &&
4848
$list<global><allow>.Set{$user} {

0 commit comments

Comments
 (0)
Please sign in to comment.