Using new AAI, update some properties
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51636 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
61ac85dce4
commit
fa56fe4d30
|
@ -132,7 +132,8 @@ export class Session{
|
||||||
public static isClaimsCurator():boolean {
|
public static isClaimsCurator():boolean {
|
||||||
var isAuthorized = false;
|
var isAuthorized = false;
|
||||||
if(Session.isLoggedIn()){
|
if(Session.isLoggedIn()){
|
||||||
var claimRoles = ["urn:mace:openminted.eu:aai.openminted.eu:group:OpenAIRE+Curator+-+Claim"]
|
|
||||||
|
var claimRoles = ["urn:geant:openaire.eu:group:Curator+-+Claim#aai.openaire.eu"]
|
||||||
for (var i = 0; i < claimRoles.length; i++) {
|
for (var i = 0; i < claimRoles.length; i++) {
|
||||||
if ((Session.getUser().role).indexOf(claimRoles[i]) > -1) {
|
if ((Session.getUser().role).indexOf(claimRoles[i]) > -1) {
|
||||||
isAuthorized = true;
|
isAuthorized = true;
|
||||||
|
@ -146,7 +147,7 @@ export class Session{
|
||||||
public static isCommunityCurator():boolean {
|
public static isCommunityCurator():boolean {
|
||||||
var isAuthorized = false;
|
var isAuthorized = false;
|
||||||
if(Session.isLoggedIn()){
|
if(Session.isLoggedIn()){
|
||||||
var roles = ["urn:mace:openminted.eu:aai.openminted.eu:group:OpenAIRE+Curator+-+Community"]
|
var roles = ["urn:geant:openaire.eu:group:Curator+-+Community#aai.openaire.eu"]
|
||||||
for (var i = 0; i < roles.length; i++) {
|
for (var i = 0; i < roles.length; i++) {
|
||||||
if ((Session.getUser().role).indexOf(roles[i]) > -1) {
|
if ((Session.getUser().role).indexOf(roles[i]) > -1) {
|
||||||
isAuthorized = true;
|
isAuthorized = true;
|
||||||
|
@ -160,7 +161,7 @@ export class Session{
|
||||||
public static isPortalAdministrator():boolean {
|
public static isPortalAdministrator():boolean {
|
||||||
var isAuthorized = false;
|
var isAuthorized = false;
|
||||||
if(Session.isLoggedIn()){
|
if(Session.isLoggedIn()){
|
||||||
var roles = ["urn:mace:openminted.eu:aai.openminted.eu:group:OpenAIRE+Portal+Administrator"]
|
var roles = ["urn:geant:openaire.eu:group:Portal+Administrator#aai.openaire.eu"]
|
||||||
for (var i = 0; i < roles.length; i++) {
|
for (var i = 0; i < roles.length; i++) {
|
||||||
if ((Session.getUser().role).indexOf(roles[i]) > -1) {
|
if ((Session.getUser().role).indexOf(roles[i]) > -1) {
|
||||||
isAuthorized = true;
|
isAuthorized = true;
|
||||||
|
@ -176,7 +177,7 @@ export class Session{
|
||||||
public static isRegisteredUser():boolean {
|
public static isRegisteredUser():boolean {
|
||||||
var isRegisteredUser = false;
|
var isRegisteredUser = false;
|
||||||
if(Session.isLoggedIn()){
|
if(Session.isLoggedIn()){
|
||||||
var claimRoles = ["urn:mace:openminted.eu:aai.openminted.eu:group:Registered+User"];
|
var claimRoles = ["urn:geant:openaire.eu:group:Registered+User#aai.openaire.eu"];
|
||||||
for (var i = 0; i < claimRoles.length; i++) {
|
for (var i = 0; i < claimRoles.length; i++) {
|
||||||
if ((Session.getUser().role).indexOf(claimRoles[i]) > -1) {
|
if ((Session.getUser().role).indexOf(claimRoles[i]) > -1) {
|
||||||
isRegisteredUser = true;
|
isRegisteredUser = true;
|
||||||
|
|
Loading…
Reference in New Issue