Fix activityLog permission name (#1641)

This commit is contained in:
MartinOscar 2025-08-31 12:59:48 +02:00 committed by GitHub
parent a8241bf9f3
commit 5eff006843
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 28 additions and 1 deletions

View File

@ -44,7 +44,7 @@ class Role extends BaseRole
'health' => [ 'health' => [
'view', 'view',
], ],
'activity' => [ 'activityLog' => [
'seeIps', 'seeIps',
], ],
]; ];

View File

@ -0,0 +1,27 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
DB::table('permissions')
->where('name', 'seeIps activity')
->update(['name' => 'seeIps activityLog']);
}
/**
* Reverse the migrations.
*/
public function down(): void
{
DB::table('permissions')
->where('name', 'seeIps activityLog')
->update(['name' => 'seeIps activity']);
}
};