Skip to content

fullstack developer task - #48

Open
tzlilshtam wants to merge 6 commits into
hg-official:masterfrom
tzlilshtam:master
Open

fullstack developer task#48
tzlilshtam wants to merge 6 commits into
hg-official:masterfrom
tzlilshtam:master

Conversation

@tzlilshtam

Copy link
Copy Markdown

1.Database Migration

  • Changed role column roles to support multiple roles per user
  • Changed status from boolean to enum ('Enabled', 'Disabled', 'Deleted')
  1. Backend Updates
  • Updated User entity to status: UserStatus enum
  • Authorization Check : check if the user is Deleted so throw Unauthorized and if Disabled throw 401(forbidden).
  1. Frontend State Management (Vuex)
    Added centralized store to manage logged-in user data
    Store keeps track of current user and their roles
    All components can access user info from one place

  2. Route Protection
    Home page: All logged-in users can access
    Editor page: Only Editor and Admin users
    Admin page: Only Admin users

I focused primarily on the backend CRUD logic and database architecture, but didn't fully complete the frontend logic and UI because I'm not very familiar with Vue.
right now the app is not working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant