Skip to content

Commit

Permalink
Fixed SQL typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Aug 21, 2023
1 parent e18fd54 commit f229919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/php/libAllure/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public static function getUser($username)

public static function grantPermissionToUid(string $permissionName, int $uid): bool
{
$sql = 'SELECT `id` FROM permissions WHERE `key` = := :permissionName LIMIT 1';
$sql = 'SELECT `id` FROM permissions WHERE `key` = :permissionName LIMIT 1';
$stmt = DatabaseFactory::getInstance()->prepare($sql);
$stmt->execute([
'permissionName' => $permissionName
Expand Down

0 comments on commit f229919

Please sign in to comment.