-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Add a level field to User model.
JobLevels model should contain the following fields:
name(required)description(optional)skills(optional) necessary to reach the levelresponsibilities(optional) of someone at this levelopenings(optional).
JobLevels controller should include the following methods:
create(ADMINonly)update(ADMINonly)delete(ADMINonly.ADMINlevel can't be deleted)listshow
Suggested tests:
- Create level using an
ADMINuser (should return 201 - Created) - Create level using a user from any other level (should return 401 - Unauthorized)
- Update level using an
ADMINuser (should return 200 - OK) - Update level using a user from any other level (should return 401 - Unauthorized)
- Delete level using an
ADMINuser (should return 200 - OK) - Delete level using a user from any other level (should return 401 - Unauthorized)
- List all levels using an
ADMINuser (should return 200 - OK) - List all levels using a user from any other level (should return 200 - OK)
- View a level using an
ADMINuser (should return 200 - OK) - View a level using a user from any other level (should return 200 - OK)
- Create/Update feedback without
namefield