mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
Fix activityLog permission name (#1641)
This commit is contained in:
@@ -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']);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user