Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement backend for admin profile image management #158

Open
2 tasks
Madhawa97 opened this issue Aug 16, 2024 · 3 comments
Open
2 tasks

Implement backend for admin profile image management #158

Madhawa97 opened this issue Aug 16, 2024 · 3 comments
Assignees
Labels
admin Admin related task backend A backend task hacktoberfest priority: medium Medium priority task

Comments

@Madhawa97
Copy link
Member

Description:
Implement backend functionality to support admin in setting or changing profile images for mentors.

Tasks:

  • Create or update API endpoints for image upload and update.
  • Implement authorization checks for admin actions.

Acceptance Criteria:

  • Develop/ update API endpoints for uploading and updating mentor profile images
  • Implement authorization checks to ensure only admins can change images

Additional Information:
Later:

  • Implement notification system for informing mentors of image changes.

Related Dependencies or References:

@anjula-sack
Copy link
Member

@Disura-Randunu Would you like to work on this?

@Disura-Randunu
Copy link
Contributor

@Disura-Randunu Would you like to work on this?

@anjula-sack sure. Will work on this

@Disura-Randunu
Copy link
Contributor

Disura-Randunu commented Sep 30, 2024

@anjula-sack this was implmented as part of #169
We can use "PUT /api/mentor" and just provide only the image under "profile_image" property in form data to update the mentor profile image without other details.

Should I make a seperate endpoint just for updating the mentor profile image as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin Admin related task backend A backend task hacktoberfest priority: medium Medium priority task
Projects
Status: Groomed
Development

No branches or pull requests

3 participants