Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
inmanturbo authored and github-actions[bot] committed Jun 26, 2024
1 parent 02fa0e4 commit ea9dccb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stubs/invitation-only-super-admin/app/Policies/TeamPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ public function view(User $user, Team $team): bool
*/
public function create(User $user): bool
{
return UserType::SuperAdmin === $user->type || UserType::UpgradedUser === $user->type;
return $user->type === UserType::SuperAdmin || $user->type === UserType::UpgradedUser;
}

/**
* Determine whether the user can update the model.
*/
public function update(User $user, Team $team): bool
{
return $user->ownsTeam($team) && false === cache()->get('team:lock_db:'. $team->uuid, false);
return $user->ownsTeam($team) && cache()->get('team:lock_db:'.$team->uuid, false) === false;
}

/**
Expand Down

0 comments on commit ea9dccb

Please sign in to comment.