mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-08 01:14:34 +02:00
Use str_contains and similar instead of strpos
This commit is contained in:
parent
508de10191
commit
1dbf36b86b
16 changed files with 18 additions and 19 deletions
|
@ -128,7 +128,7 @@ final class PermissionData implements \JsonSerializable
|
|||
public function isPermissionSet(string $permission, string $operation): bool
|
||||
{
|
||||
//We cannot access metadata via normal permission data
|
||||
if (strpos($permission, '$') !== false) {
|
||||
if (str_contains($permission, '$')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue