Skip to content

Commit

Permalink
Gives access to Nova to 2 specific accounts. (#6)
Browse files Browse the repository at this point in the history
* Gives access to Nova to 2 specific accounts.

* Update composer.json
  • Loading branch information
mennotempelaar committed Aug 4, 2022
1 parent 2a81849 commit e583679
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Providers/NovaServiceProvider.php
Expand Up @@ -41,7 +41,7 @@ protected function routes(): void
protected function gate(): void
{
Gate::define('viewNova', function ($user) {
return $user->email == 'info@mentod.nl';
return in_array($user->id, [1, 2]);
});
}

Expand Down
2 changes: 1 addition & 1 deletion composer.json
@@ -1,7 +1,7 @@
{
"name": "bondgenoot/pedicure-anet",
"type": "project",
"version": "1.1.4",
"version": "1.1.5",
"description": "Website for the pedicure salon Pedicure Anet.",
"keywords": ["framework", "laravel", "website"],
"license": "MIT",
Expand Down

0 comments on commit e583679

Please sign in to comment.