Skip to content

Commit

Permalink
Merge branch 'feature/HES-2310' into 'develop'
Browse files Browse the repository at this point in the history
HES-2310 revoked permission to unauthenticated role

Closes HES-2310

See merge request heseya/core!394
  • Loading branch information
bvlinsky committed Sep 25, 2023
2 parents 29f7be8 + d85f1ef commit be72800
Show file tree
Hide file tree
Showing 2 changed files with 176 additions and 125 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

use App\Models\Role;
use Illuminate\Database\Migrations\Migration;

return new class extends Migration {
public function up(): void
{
Role::query()->where('name', 'Unauthenticated')->first()->revokePermissionTo(
'auth.password_change',
);
}

public function down(): void
{
Role::query()->where('name', 'Unauthenticated')->first()->givePermissionTo(
'auth.password_change',
);
}
};
Loading

0 comments on commit be72800

Please sign in to comment.