Skip to content

#5 improve user role and site management#12

Closed
thapacodes4u wants to merge 11 commits intoDataLinx:mainfrom
thapacodes4u:5-improve-user-role-and-site-management
Closed

#5 improve user role and site management#12
thapacodes4u wants to merge 11 commits intoDataLinx:mainfrom
thapacodes4u:5-improve-user-role-and-site-management

Conversation

@thapacodes4u
Copy link
Contributor

What was done in this PR?

Role create/edit:

  • We already have site_id column in roles table. So add a site field in Create & Edit user page were user can select. (Completed)

User create/edit/view:

  • Set user's global roles (when editing or creating user). (Completed)
    • Here I have added a way to identify Global or Site-specific role in the dropdown
  • Set user's roles for each site. (Completed)
    • Here I have added a new multi-select field were you can select which site access you want to give to the particular user
  • When saved, the site_has_user table should also be updated. (Completed)
  • View user's global and site roles on the view page (only for sites the admin has access to). (Completed)
    • I have added a new secction called Access Information that basically provide info about what site they have access to and what roles they have.

User control:

  • User can login only on his sites.
    • This was already applied. Don't know if you mean any specific implementation here.
  • New users must get the panel_user role, no matter where they came from (registration, seeder...)

Site management:

  • When a new site is created, all users with global roles should be added to it, so they have the role on the new site also
    • I assumed global role means those whose site_id is null. So anyone having this role should have access to any new site that gets created.

User list:

  • By default, the users list should display only users for the current site
  • Add columns for user's global and (current) site roles
  • A filter can be set to see users from all sites (that the admin has the access to)
  • A filter for global and site roles (any role/specific role)

Some Preview

image image image image image

@thapacodes4u
Copy link
Contributor Author

This was not supposed to be created. A branch already exists

@thapacodes4u thapacodes4u deleted the 5-improve-user-role-and-site-management branch June 17, 2025 09:33
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