Apply fixes from StyleCI (#260)
This commit is contained in:
parent
19da4eda04
commit
355697dbb5
5 changed files with 10 additions and 6 deletions
|
@ -73,6 +73,7 @@ class TaskController extends Controller
|
|||
'server' => collect($server->makeVisible('daemonSecret'))->only(['uuid', 'uuidShort', 'daemonSecret', 'username']),
|
||||
'node' => collect($node)->only('fqdn', 'scheme', 'daemonListen'),
|
||||
]);
|
||||
|
||||
return view('server.tasks.new', [
|
||||
'server' => $server,
|
||||
'node' => $node,
|
||||
|
@ -89,6 +90,7 @@ class TaskController extends Controller
|
|||
$repo->create($server->id, $request->except([
|
||||
'_token',
|
||||
]));
|
||||
|
||||
return redirect()->route('server.tasks', $uuid);
|
||||
} catch (DisplayValidationException $ex) {
|
||||
return redirect()->route('server.tasks.new', $uuid)->withErrors(json_decode($ex->getMessage()))->withInput();
|
||||
|
|
|
@ -71,6 +71,7 @@ class AdminAuthenticate
|
|||
|
||||
// @TODO: eventually update admin themes
|
||||
Theme::set('default');
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -150,9 +150,10 @@ class User extends Model implements AuthenticatableContract, AuthorizableContrac
|
|||
/**
|
||||
* Return true or false depending on wether the user is root admin or not.
|
||||
*
|
||||
* @return boolean the user is root admin
|
||||
* @return bool the user is root admin
|
||||
*/
|
||||
public function isRootAdmin() {
|
||||
public function isRootAdmin()
|
||||
{
|
||||
return $this->root_admin === 1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -32,11 +32,11 @@ return [
|
|||
'form_title' => 'Details',
|
||||
'descriptive_memo' => [
|
||||
'title' => 'Descriptive Memo',
|
||||
'description' => 'Enter a brief description of what this API key will be used for.'
|
||||
'description' => 'Enter a brief description of what this API key will be used for.',
|
||||
],
|
||||
'allowed_ips' => [
|
||||
'title' => 'Allowed IPs',
|
||||
'description' => 'Enter a line delimitated list of IPs that are allowed to access the API using this key. CIDR notation is allowed. Leave blank to allow any IP.'
|
||||
'description' => 'Enter a line delimitated list of IPs that are allowed to access the API using this key. CIDR notation is allowed. Leave blank to allow any IP.',
|
||||
],
|
||||
'base' => [
|
||||
'title' => 'Base Information',
|
||||
|
|
|
@ -46,7 +46,7 @@ return [
|
|||
'update' => 'Update Subuser',
|
||||
'edit' => [
|
||||
'header' => 'Edit Subuser',
|
||||
'header_sub' => 'Modify user\'s access to server.'
|
||||
'header_sub' => 'Modify user\'s access to server.',
|
||||
],
|
||||
'new' => [
|
||||
'header' => 'Add New User',
|
||||
|
@ -255,7 +255,7 @@ return [
|
|||
'header_sub' => 'Control the IPs and ports available on this server.',
|
||||
'available' => 'Available Allocations',
|
||||
'help' => 'Allocation Help',
|
||||
'help_text' => 'The list to the left includes all available IPs and ports that are open for your server to use for incoming connections.'
|
||||
'help_text' => 'The list to the left includes all available IPs and ports that are open for your server to use for incoming connections.',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
|
Loading…
Reference in a new issue