I really need to stop trying to override PHP reserved keywords...
This commit is contained in:
parent
1c37a8fe1a
commit
7eb7377dd5
6 changed files with 8 additions and 8 deletions
|
@ -39,7 +39,7 @@ class ServiceController extends Controller
|
|||
* @param \Illuminate\Http\Request $request
|
||||
* @return \Illuminate\Http\JsonResponse
|
||||
*/
|
||||
public function list(Request $request)
|
||||
public function listServices(Request $request)
|
||||
{
|
||||
$response = [];
|
||||
foreach (Service::all() as $service) {
|
||||
|
|
|
@ -79,7 +79,7 @@ class SubuserController extends Controller
|
|||
'server' => $server,
|
||||
'node' => $server->node,
|
||||
'subuser' => $subuser,
|
||||
'permlist' => Models\Permission::list(),
|
||||
'permlist' => Models\Permission::listPermissions(),
|
||||
'permissions' => $subuser->permissions->mapWithKeys(function ($item, $key) {
|
||||
return [$item->permission => true];
|
||||
}),
|
||||
|
@ -147,7 +147,7 @@ class SubuserController extends Controller
|
|||
|
||||
return view('server.users.new', [
|
||||
'server' => $server,
|
||||
'permissions' => Models\Permission::list(),
|
||||
'permissions' => Models\Permission::listPermissions(),
|
||||
'node' => $server->node,
|
||||
]);
|
||||
}
|
||||
|
|
|
@ -121,7 +121,7 @@ class Permission extends Model
|
|||
* @param array $single
|
||||
* @return \Illuminate\Support\Collection|array
|
||||
*/
|
||||
public static function list($single = false)
|
||||
public static function listPermissions($single = false)
|
||||
{
|
||||
if ($single) {
|
||||
return collect(self::$permissions)->mapWithKeys(function ($item) {
|
||||
|
|
|
@ -103,7 +103,7 @@ class SubuserRepository
|
|||
'daemonSecret' => (string) $uuid->generate('servers', 'uuid'),
|
||||
]);
|
||||
|
||||
$perms = Permission::list(true);
|
||||
$perms = Permission::listPermissions(true);
|
||||
$daemonPermissions = $this->coreDaemonPermissions;
|
||||
|
||||
foreach ($data['permissions'] as $permission) {
|
||||
|
@ -222,7 +222,7 @@ class SubuserRepository
|
|||
$permission->delete();
|
||||
}
|
||||
|
||||
$perms = Permission::list(true);
|
||||
$perms = Permission::listPermissions(true);
|
||||
$daemonPermissions = $this->coreDaemonPermissions;
|
||||
|
||||
foreach ($data['permissions'] as $permission) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue