Compare commits
No commits in common. "e4c4c1811d423d6f79545f5910838f21195fdfef" and "334e8e182e049e1456c284713dafa0da42af2fb1" have entirely different histories.
e4c4c1811d
...
334e8e182e
|
@ -8,7 +8,7 @@ import java.util.Map;
|
|||
public enum DmpUserRole implements DatabaseEnum<Short> {
|
||||
|
||||
Owner((short) 0),
|
||||
Viewer((short) 1),
|
||||
User((short) 1),
|
||||
DescriptionContributor((short) 2),
|
||||
Reviewer((short) 3);
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ public class DmpUserCommonModelBuilder extends BaseCommonModelBuilder<DmpUserMod
|
|||
for (DmpUserEntity d : data) {
|
||||
DmpUserModel m = new DmpUserModel();
|
||||
switch (d.getRole()){
|
||||
case Viewer -> m.setRole(DmpUserRole.Viewer);
|
||||
case User -> m.setRole(DmpUserRole.User);
|
||||
case Owner -> m.setRole(DmpUserRole.Owner);
|
||||
case DescriptionContributor -> m.setRole(DmpUserRole.DescriptionContributor);
|
||||
case Reviewer -> m.setRole(DmpUserRole.Reviewer);
|
||||
|
|
|
@ -2032,7 +2032,7 @@ public class DmpServiceImpl implements DmpService {
|
|||
|
||||
switch (model.getRole()){
|
||||
case Owner -> persist.setRole(DmpUserRole.Owner);
|
||||
case Viewer -> persist.setRole(DmpUserRole.Viewer);
|
||||
case User -> persist.setRole(DmpUserRole.User);
|
||||
case DescriptionContributor -> persist.setRole(DmpUserRole.DescriptionContributor);
|
||||
case Reviewer -> persist.setRole(DmpUserRole.Reviewer);
|
||||
default -> throw new MyApplicationException("Unrecognized Type " + model.getRole().getValue());
|
||||
|
|
|
@ -173,7 +173,7 @@ permissions:
|
|||
dmp:
|
||||
roles:
|
||||
- Owner
|
||||
- Viewer
|
||||
- User
|
||||
- DescriptionContributor
|
||||
- Reviewer
|
||||
clients: [ ]
|
||||
|
@ -185,6 +185,7 @@ permissions:
|
|||
dmp:
|
||||
roles:
|
||||
- Owner
|
||||
- User
|
||||
- DescriptionContributor
|
||||
- Reviewer
|
||||
clients: [ ]
|
||||
|
@ -291,7 +292,7 @@ permissions:
|
|||
dmp:
|
||||
roles:
|
||||
- Owner
|
||||
- Viewer
|
||||
- User
|
||||
- DescriptionContributor
|
||||
- Reviewer
|
||||
claims: [ ]
|
||||
|
@ -407,7 +408,7 @@ permissions:
|
|||
dmp:
|
||||
roles:
|
||||
- Owner
|
||||
- Viewer
|
||||
- User
|
||||
- DescriptionContributor
|
||||
- Reviewer
|
||||
clients: [ ]
|
||||
|
@ -419,6 +420,9 @@ permissions:
|
|||
dmp:
|
||||
roles:
|
||||
- Owner
|
||||
- User
|
||||
- DescriptionContributor
|
||||
- Reviewer
|
||||
clients: [ ]
|
||||
allowAnonymous: false
|
||||
allowAuthenticated: false
|
||||
|
@ -836,7 +840,7 @@ permissions:
|
|||
dmp:
|
||||
roles:
|
||||
- Owner
|
||||
- Viewer
|
||||
- User
|
||||
- DescriptionContributor
|
||||
- Reviewer
|
||||
clients: [ ]
|
||||
|
@ -848,7 +852,7 @@ permissions:
|
|||
dmp:
|
||||
roles:
|
||||
- Owner
|
||||
- Viewer
|
||||
- User
|
||||
- DescriptionContributor
|
||||
- Reviewer
|
||||
claims: [ ]
|
||||
|
|
Loading…
Reference in New Issue