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']),
|
'server' => collect($server->makeVisible('daemonSecret'))->only(['uuid', 'uuidShort', 'daemonSecret', 'username']),
|
||||||
'node' => collect($node)->only('fqdn', 'scheme', 'daemonListen'),
|
'node' => collect($node)->only('fqdn', 'scheme', 'daemonListen'),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return view('server.tasks.new', [
|
return view('server.tasks.new', [
|
||||||
'server' => $server,
|
'server' => $server,
|
||||||
'node' => $node,
|
'node' => $node,
|
||||||
|
@ -89,6 +90,7 @@ class TaskController extends Controller
|
||||||
$repo->create($server->id, $request->except([
|
$repo->create($server->id, $request->except([
|
||||||
'_token',
|
'_token',
|
||||||
]));
|
]));
|
||||||
|
|
||||||
return redirect()->route('server.tasks', $uuid);
|
return redirect()->route('server.tasks', $uuid);
|
||||||
} catch (DisplayValidationException $ex) {
|
} catch (DisplayValidationException $ex) {
|
||||||
return redirect()->route('server.tasks.new', $uuid)->withErrors(json_decode($ex->getMessage()))->withInput();
|
return redirect()->route('server.tasks.new', $uuid)->withErrors(json_decode($ex->getMessage()))->withInput();
|
||||||
|
|
|
@ -71,6 +71,7 @@ class AdminAuthenticate
|
||||||
|
|
||||||
// @TODO: eventually update admin themes
|
// @TODO: eventually update admin themes
|
||||||
Theme::set('default');
|
Theme::set('default');
|
||||||
|
|
||||||
return $next($request);
|
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 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;
|
return $this->root_admin === 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,11 +32,11 @@ return [
|
||||||
'form_title' => 'Details',
|
'form_title' => 'Details',
|
||||||
'descriptive_memo' => [
|
'descriptive_memo' => [
|
||||||
'title' => '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' => [
|
'allowed_ips' => [
|
||||||
'title' => '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' => [
|
'base' => [
|
||||||
'title' => 'Base Information',
|
'title' => 'Base Information',
|
||||||
|
|
|
@ -46,7 +46,7 @@ return [
|
||||||
'update' => 'Update Subuser',
|
'update' => 'Update Subuser',
|
||||||
'edit' => [
|
'edit' => [
|
||||||
'header' => 'Edit Subuser',
|
'header' => 'Edit Subuser',
|
||||||
'header_sub' => 'Modify user\'s access to server.'
|
'header_sub' => 'Modify user\'s access to server.',
|
||||||
],
|
],
|
||||||
'new' => [
|
'new' => [
|
||||||
'header' => 'Add New User',
|
'header' => 'Add New User',
|
||||||
|
@ -255,7 +255,7 @@ return [
|
||||||
'header_sub' => 'Control the IPs and ports available on this server.',
|
'header_sub' => 'Control the IPs and ports available on this server.',
|
||||||
'available' => 'Available Allocations',
|
'available' => 'Available Allocations',
|
||||||
'help' => 'Allocation Help',
|
'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…
Add table
Reference in a new issue