new Permission "admin.servers.bypass_creation_enabled"
This commit is contained in:
parent
a2a5426252
commit
8279f07156
2 changed files with 2 additions and 1 deletions
|
@ -164,7 +164,7 @@ class ServerController extends Controller
|
|||
}
|
||||
|
||||
//Required Verification for creating an server
|
||||
if (!$server_settings->creation_enabled && Auth::user()->role != 'admin') {
|
||||
if (!$server_settings->creation_enabled && Auth::user()->cannot("admin.servers.bypass_creation_enabled")) {
|
||||
return redirect()->route('servers.index')->with('error', __('The system administrator has blocked the creation of new servers.'));
|
||||
}
|
||||
|
||||
|
|
|
@ -46,6 +46,7 @@ return [
|
|||
'admin.servers.write.owner',
|
||||
'admin.servers.write.identifier',
|
||||
'admin.servers.delete',
|
||||
'admin.servers.bypass_creation_enabled',
|
||||
|
||||
'admin.products.read',
|
||||
'admin.products.create',
|
||||
|
|
Loading…
Add table
Reference in a new issue