Commit e925edd6 authored by Jacob Priddy's avatar Jacob Priddy 👌
Browse files

Remove the tokens groups

parent 40c65cb6
Pipeline #2894 passed with stages
in 1 minute and 55 seconds
......@@ -24,10 +24,6 @@ class GroupsSeeder extends Seeder
$groups->create(LocalGroupsRepository::getManageDoorsGroup());
$groups->create(LocalGroupsRepository::getManageTokenGroup());
$groups->create(LocalGroupsRepository::getTokenCreateGroup());
$groups->create(LocalGroupsRepository::getCodeQueryGroup());
$groups->create(LocalGroupsRepository::getManageGroupsGroup());
......
......@@ -8,8 +8,6 @@ class Permissions
public const ADMIN = 'admin';
public const MANAGE_USERS = 'manage-users';
public const MANAGE_DOORS = 'manage-doors';
public const MANAGE_TOKEN = 'manage-token';
public const TOKEN_CREATE = 'token-create';
public const MANAGE_GROUPS = 'manage-groups';
public const CODE_QUERY = 'code-query';
}
......@@ -21,8 +21,6 @@ class LocalGroupUserRepository extends InMemoryGroupUserRepository
$this->addUserToGroup(LocalUsersRepository::getSemiPrivilegedUser()->getId(), LocalGroupsRepository::getManageUsersGroup()->getId());
$this->addUserToGroup(LocalUsersRepository::getSemiPrivilegedUser()->getId(), LocalGroupsRepository::getManageDoorsGroup()->getId());
$this->addUserToGroup(LocalUsersRepository::getSemiPrivilegedUser()->getId(), LocalGroupsRepository::getManageTokenGroup()->getId());
$this->addUserToGroup(LocalUsersRepository::getSemiPrivilegedUser()->getId(), LocalGroupsRepository::getTokenCreateGroup()->getId());
$this->addUserToGroup(LocalUsersRepository::getSemiPrivilegedUser()->getId(), LocalGroupsRepository::getCodeQueryGroup()->getId());
$this->addUserToGroup(LocalUsersRepository::getSemiPrivilegedUser()->getId(), LocalGroupsRepository::getManageGroupsGroup()->getId());
......
......@@ -16,10 +16,6 @@ class LocalGroupsRepository extends InMemoryGroupsRepository
$this->create(static::getManageDoorsGroup());
$this->create(static::getManageTokenGroup());
$this->create(static::getTokenCreateGroup());
$this->create(static::getCodeQueryGroup());
$this->create(static::getComputerScienceMajorGroup());
......@@ -65,30 +61,6 @@ class LocalGroupsRepository extends InMemoryGroupsRepository
);
}
/**
* @return \Source\Entities\Group
*/
public static function getManageTokenGroup(): Group
{
return new Group(
6,
Permissions::MANAGE_TOKEN,
'Gives the permission for one to manage delegation of API Tokens'
);
}
/**
* @return \Source\Entities\Group
*/
public static function getTokenCreateGroup(): Group
{
return new Group(
4,
Permissions::TOKEN_CREATE,
'Gives the permission to generate long lived API Tokens'
);
}
/**
* @return \Source\Entities\Group
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment