-
Notifications
You must be signed in to change notification settings - Fork 37
Milestone
Description
export const getScope = ( | |
directory: SerializedResource<SpAppResourceDir> | |
): AppResourceScope => { | |
if (directory.discipline === null && directory.collection === null) | |
return 'global'; | |
else if (directory.collection === null) return 'discipline'; | |
else if (directory.userType === null && !directory.isPersonal) | |
return 'collection'; | |
else if (directory.isPersonal) { | |
return 'user'; | |
} else { | |
return 'userType'; | |
} | |
}; |
Metadata
Metadata
Assignees
Labels
No labels