I really need to stop trying to override PHP reserved keywords...

This commit is contained in:
Dane Everitt 2017-04-28 10:19:04 -04:00
parent 1c37a8fe1a
commit 7eb7377dd5
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
6 changed files with 8 additions and 8 deletions

View file

@ -62,7 +62,7 @@ This project follows [Semantic Versioning](http://semver.org) guidelines.
* Servers that a user is assocaited with as a subuser are now displayed in addition to owned servers when listing users in the Admin CP.
### Changed
* Subuser permissions are now stored in `Permission::list()` to make views way cleaner and make adding to views significantly cleaner.
* Subuser permissions are now stored in `Permission::listPermissions()` to make views way cleaner and make adding to views significantly cleaner.
* `[pre.7]` — Sidebar for file manager now is a single link rather than a dropdown.
* Attempting to reset a password for an account that does not exist no longer returns an error, rather it displays a success message. Failed resets trigger a `Pterodactyl\Events\Auth\FailedPasswordReset` event that can be caught if needed to perform other actions.
* Servers are no longer queued for deletion due to the general hassle and extra logic required.

View file

@ -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) {

View file

@ -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,
]);
}

View file

@ -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) {

View file

@ -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) {

View file

@ -21,7 +21,7 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
Route::get('/services', 'ServiceController@list')->name('daemon.services');
Route::get('/services', 'ServiceController@listServices')->name('daemon.services');
Route::get('/services/pull/{service}/{file}', 'ServiceController@pull')->name('daemon.pull');
Route::get('/packs/pull/{uuid}', 'PackController@pull')->name('daemon.pack.pull');
Route::get('/packs/pull/{uuid}/hash', 'PackController@hash')->name('daemon.pack.hash');