wanderlust icon indicating copy to clipboard operation
wanderlust copied to clipboard

[FEATURE] Adding admin functionality to the frontend

Open devsharmagit opened this issue 1 year ago • 4 comments

Description

1 Admin routes shouldn't be accessible when the URL is directly entered. 2 owner of the post should be able to edit and delete his own post 3 admin should be able to see the edit and delete post option like the 2nd point like post owner. At the same time has his dedicated window using 3rd point.

Use Case

This feature will complete the admin functionality to the frontend.

Proposed Solution

No response

Additional Information

No response

Attachments

No response

devsharmagit avatar May 08 '24 03:05 devsharmagit

Hi there! I'm excited to contribute to this project and would love to work on this issue. Could you please assign it to me? Thanks!

thefarhanahmad avatar May 09 '24 13:05 thefarhanahmad

i would like to fix this issue

404sooraj avatar May 11 '24 05:05 404sooraj

Hi there! , will like to resolve this issue.

bikashsahh avatar May 12 '24 17:05 bikashsahh

i would love to resolve this issue. I am a GSSOC 24 contributor.

Propose Solution

  • [ ] Will make a reusable Layout to protect certain routes.
  • [ ] Need to store user is Admin or not in a global state by using native useContext hook or using library like redux-toolkit.

The question is Are we getting admin value in user data or not ? If not i would also love to fix this issue along with the above one.

razerbotog avatar May 14 '24 22:05 razerbotog