Comments (5)
this may be a separate Admin
model, since they'll be managing users but not creating donations, for example.
from human-essentials.
@abachman @armahillo
I wonder if we need an Admin model or just an admin
or super_admin
attribute on the user model? This is my gut feel as I imagine that Rachel and people she picks will ultimately be the ones administering this. So she'll need to create donations, distributions and all the regular stuff as well as doing the admin stuff.
I wasn't in the room so I don't know the flow of how you all envisioned the flow but in my head it goes something like this:
Users who are super admins have a manage organizations dropdown menu.
It contains:
View Organizations (index page)
Create Organization (Create)
After creating the organization it goes to the show page. The show page lists all the users (if any) associated with the organization. It also as a button "Invite User to Organization" that takes advantage of the devise invitable to add users to that organization.
from human-essentials.
I think I agree with @seanmarcia. From a workflow perspective, this seems like a new hat that someone who already has access to the system would wear, on top of their existing responsibilities. Those with admin privileges would just have the ability to manage those orgs and send out invitations for others to join those organizations.
From an implementation perspective, a separate model in Devise is a separate login session. So switching those hats would require logging off as the org owner and logging in as the diaper base administrator.
from human-essentials.
Unless the model for the admin user is going to be very different functionally, I'm good with just doing a field attribute -- that seems simplest. We can refactor into STI or something later if necessary.
from human-essentials.
Fixed by #104
from human-essentials.
Related Issues (20)
- Data cleanup: Started Requests that have an associated distribution should have status Fulfilled. HOT 1
- Restyling checkboxes in partner areas HOT 2
- Include period supplies in kits in NDBN report values that are based on period supplies HOT 4
- Restyling checkboxes in partner areas, part II HOT 4
- Super admin session poisoning after switching roles via dropdown HOT 3
- Disable *deletion* of donations and purchases if they include an inactive item HOT 2
- Seed improvement -- Children should have unique names HOT 2
- Remove organization from superuser edit/index of users HOT 1
- [BUG]: Flaky test in children_served_report_service_spec.rb HOT 2
- Prevent changing storage location on itemizables if there has been an intervening audit of the items involved
- Add test that the settings partial appears on partner profile edit HOT 6
- Change error message for "Quantity is not a number" to "Quantity is not a number -- note: commas are not allowed." HOT 2
- Add a comment field to product drive participant HOT 2
- Add optional signature line to distribution printout HOT 4
- [BUG] You can enter an issued_at date without a time. Hijinks ensue. HOT 7
- [Feature] Add FMV to purchases index HOT 2
- Explore disabling InventoryItem HOT 3
- [BUG]: flaky `distributions_by_county_system_spec` HOT 5
- Improvements to how distribution new works HOT 5
- bin/setup broken (as of rails 7.1.3.2) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from human-essentials.