Skip to content

Commit

Permalink
fix itil rule right checks
Browse files Browse the repository at this point in the history
  • Loading branch information
cconard96 authored and cedric-anne committed Nov 13, 2023
1 parent 8a55457 commit 6b8fa42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RuleCommonITILObjectCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static function getItemtype(): string
public static function canView()
{
$rule_class = (new static())->getRuleClassName();
return Session::haveRightsOr(self::$rightname, [READ, $rule_class::PARENT]);
return Session::haveRightsOr(static::$rightname, [READ, $rule_class::PARENT]);
}

public function canList()
Expand Down

0 comments on commit 6b8fa42

Please sign in to comment.