Skip to content

Commit 05845b4

Browse files
committed
Removed role field from BaseUser schema
1 parent 7f63def commit 05845b4

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

src/controller/org.controller/org.controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ async function getOrg (req, res, next) {
8989

9090
/**
9191
* Get the details of all users from an org given the specified shortname
92-
* Called by GET /api/org/{shortname}/users
92+
* Called by GET /api/registry/org/{shortname}/users, GET /api/org/{shortname}/users
9393
**/
9494
async function getUsers (req, res, next) {
9595
try {
@@ -133,7 +133,7 @@ async function getUsers (req, res, next) {
133133

134134
/**
135135
* Get the details of a single user for the specified username
136-
* Called by GET /api/org/{shortname}/user/{username}
136+
* Called by GET /api/registry/org/{shortname}/user/{username}, GET /api/org/{shortname}/user/{username}
137137
**/
138138
async function getUser (req, res, next) {
139139
try {

src/middleware/schemas/BaseUser.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@
5757
"UUID": {
5858
"$ref": "#/definitions/uuidType"
5959
},
60-
"role": {
61-
"description": "Users permissions, Like ADMIN",
62-
"type": "string",
63-
"enum": ["ADMIN"]
64-
},
6560
"status": {
6661
"description": "User status: 'active' or 'inactive'",
6762
"type": "string",

0 commit comments

Comments
 (0)