Skip to content
Snippets Groups Projects

WP110 #1191: Updated the uib_feide module to consume groups from Feide

Merged Are Johannessen requested to merge 1191-uib-feide-should-consume-groups-from-FEIDE into master
+ 3
0
@@ -58,6 +58,9 @@ enum Roles: string {
@@ -58,6 +58,9 @@ enum Roles: string {
case StudyProgramContributor = 'https://api.uib.no/names/roles/eksternweb/uibno_studies_and_students_author';
case StudyProgramContributor = 'https://api.uib.no/names/roles/eksternweb/uibno_studies_and_students_author';
case StudyProgramEditor = 'https://api.uib.no/names/roles/eksternweb/uibno_studies_and_students_manager';
case StudyProgramEditor = 'https://api.uib.no/names/roles/eksternweb/uibno_studies_and_students_manager';
 
/**
 
* Function mapping drupal roles to enum cases.
 
*/
public function getRole(): string {
public function getRole(): string {
return match ($this) {
return match ($this) {
Roles::StudyProgramContributor => 'study_program_contributor',
Roles::StudyProgramContributor => 'study_program_contributor',
Loading