Closed emidombek closed 8 months ago
As an admin, I want to manage user accounts and their roles (buyer/seller, admin). So that I am able to control my website and permissions on it.
As an admin, I have a dedicated admin dashboard accessible when logged in.
Within the admin dashboard, there is a section labeled "User Management" or "Manage Users."
The "User Management" section displays a list of all registered users on the website.
Each user entry includes the username, email address, user role (buyer, seller, admin), and registration date.
I can search for specific users by username or email address.
I have the ability to change the user role for any user directly from the user entry.
The available user roles are "buyer," "seller," and "admin."
When I change a user's role, the user's permissions are updated accordingly.
If I change a user's role to "seller," they gain the ability to list artworks for sale.
If I change a user's role to "admin," they gain access to the admin dashboard and its features.
If I change a user's role to "buyer," they have access to buyer-related features, such as bidding and purchasing.
I have the option to disable or enable user accounts as needed.
When I disable a user account, the user cannot log in or use the website until the account is re-enabled.
I can see a history of user role changes and account status changes for audit purposes.
I receive email notifications when a user registers a new account on the website.
The email notification includes the user's username and a link to the admin dashboard for further actions.
Alot of these things are already handled by django admin.
User Story
As an admin, I want to manage user accounts and their roles (buyer/seller, admin). So that I am able to control my website and permissions on it.
Acceptance Criteria:
As an admin, I have a dedicated admin dashboard accessible when logged in.
Within the admin dashboard, there is a section labeled "User Management" or "Manage Users."
The "User Management" section displays a list of all registered users on the website.
Each user entry includes the username, email address, user role (buyer, seller, admin), and registration date.
I can search for specific users by username or email address.
I have the ability to change the user role for any user directly from the user entry.
The available user roles are "buyer," "seller," and "admin."
When I change a user's role, the user's permissions are updated accordingly.
If I change a user's role to "seller," they gain the ability to list artworks for sale.
If I change a user's role to "admin," they gain access to the admin dashboard and its features.
If I change a user's role to "buyer," they have access to buyer-related features, such as bidding and purchasing.
I have the option to disable or enable user accounts as needed.
When I disable a user account, the user cannot log in or use the website until the account is re-enabled.
I can see a history of user role changes and account status changes for audit purposes.
I receive email notifications when a user registers a new account on the website.
The email notification includes the user's username and a link to the admin dashboard for further actions.
Tasks