From 7a8b7d0797deb25f3bea0f48ca63dfe65542d0ed Mon Sep 17 00:00:00 2001 From: DariusIII Date: Thu, 2 Aug 2018 12:15:48 +0200 Subject: [PATCH] Update install command --- Changelog | 1 + app/Console/Commands/InstallNntmux.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 398178d28..0abb9e573 100755 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ 2018-08-02 DariusIII + * Chg: Update install command * Chg: Update role-list template to not allow deletion of built-in roles * Chg: Update admin user-list * Fix: Fix role edit template diff --git a/app/Console/Commands/InstallNntmux.php b/app/Console/Commands/InstallNntmux.php index d086cc500..e53433687 100644 --- a/app/Console/Commands/InstallNntmux.php +++ b/app/Console/Commands/InstallNntmux.php @@ -225,6 +225,7 @@ class InstallNntmux extends Command { Permission::create(['name' => 'preview']); Permission::create(['name' => 'hideads']); + Permission::create(['name' => 'edit release']); $user = Role::create(['name' =>'User']); $admin = Role::create(['name' =>'Admin']); @@ -287,7 +288,7 @@ class InstallNntmux extends Command ] ); - $mod->givePermissionTo(['preview', 'hideads']); + $mod->givePermissionTo(['preview', 'hideads', 'edit release']); Role::query() ->where('name', '=', 'Friend')