Skip to content

Create Edit Profile Page / Enable Editing According To User Permissions #25

@zainabch123

Description

@zainabch123

A user with id=12 should have their edit profile page at the path profile/12/edit

As a user I should be able to edit the the details on my own profile page. If I am a student, I should not be able to edit my role or the cohort I am in, only teachers are allowed to do this. The password should only be editable if I am the owner of that profile page. If a student visits another student's or a teachers edit page, they should be redirected to the normal profile page for that user.

As a teacher, I need to be able to change a student into a teacher and vice-versa, or change the cohort they are in. Teachers should be able to do so by visiting the student's profile page. Teachers are allowed to visit any other user's profile/:id/edit page and submit updated data.

Only students can edit their own password

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions