Skip to content

Commit

Permalink
fix: correct comment wording and update user method docblock in User.…
Browse files Browse the repository at this point in the history
…php and AdminAuth.php

Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Feb 12, 2025
1 parent 0158842 commit 85dcd31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Facades/AdminAuth.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* @method static string getUserEmail()
* @method static string getStaffName()
* @method static string getStaffEmail()
* @method static \Igniter\User\Models\User|\Illuminate\Contracts\Auth\Authenticatable|null user()
* @method static \Illuminate\Contracts\Auth\Authenticatable|\Igniter\User\Models\User|null user()
* @method static int|string|null id()
* @method static bool once(array $credentials = [])
* @method static \Illuminate\Contracts\Auth\Authenticatable|false onceUsingId(mixed $id)
Expand Down
2 changes: 1 addition & 1 deletion src/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function hasAnyPermission($permissions)

public function hasPermission($permissions, $checkAll = true)
{
// Bail out if the user is a super user
// Bail out if the user is a superuser
if ($this->isSuperUser()) {
return true;
}
Expand Down

0 comments on commit 85dcd31

Please sign in to comment.