question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add user_roles table for organizers and admins

See original GitHub issue

Create a user_roles table with id and type as string and reference the id of user_roles via users table.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:44 (38 by maintainers)

github_iconTop GitHub Comments

4reactions
allellacommented, Feb 12, 2020

Just for consistency with the terminology, would we consider user_instance_role instead of user_global_role ? @timmyichen @Zeko369

4reactions
AryanJ-NYCcommented, Jan 17, 2020

@allella one idea would be an is_admin boolean field on the user model while having the user_chapter_rolestable be responsible for only member roles and member membership to organization (if there exists a user_id and org_id combo inside the table, then the user is a member of that org).

Read more comments on GitHub >

github_iconTop Results From Across the Web

User roles table - IBM
The first table is a master table with all applications and user roles. For application-specific tables, select one of the following: Core roles...
Read more >
Users, roles and permissions - Sirv
Table of roles and permissions; The 7 user roles. Primary Owner; Owner; Admin; Editor; Contributor; Viewer; Billing. Lock folders to protect them.
Read more >
Managing User Roles and Permissions - ManageEngine
Go to Admin >> Customization >> Roles. · In the Roles window, click Add Role. A new window will open up. · While...
Read more >
Adding Users And Assigning Roles
Roles assign privileges to users. Two roles (storage and guest) are defined in the array management software. Assigns a user write permission and...
Read more >
Create an Admin User Role to View All Records
To add a user role for Admin users, click green “+” button next to User Roles. This will prompt you to give your...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found