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)
- Request History on partner should show # of items instead of request id HOT 2
- Kit redesign roadmap HOT 2
- [INFRASTRUCTURE] Migration from Azure Database for Postgres -- Single Server to Azure Database for Postgres -- Flexible Server
- Finalize Audits should not zero out uncounted items HOT 2
- Some tests are relying on the default organization's name being DEFAULT. Not great, because DEFAULT also appears in default user names, so if you're checking on a screen, you'll get false positives.
- request: Add "Shipped" to delivery method. Also add a shipping cost field. HOT 5
- [Suggestion] Landing Page for Product Drives
- Add link to privacy policy to landing page HOT 3
- Incorrect wording in sample inventory import spreadsheet HOT 2
- Provide a way to list the product drive participants for a product drive -- all the info, so they can be contacted again HOT 3
- [RFG2023] Add outstanding requests card to dashboard HOT 3
- Adjustments for banks that have a different fiscal year HOT 14
- Reset sessions when signing in HOT 2
- Storage items -- filter says by item category, but it looks like by item to me. HOT 4
- Make reminder day labels clearer HOT 3
- [Bug] Fix nasty error when clicking on partner approval request email as partner HOT 4
- [Bug] Inventory imports add to the existing inventory. They should replace levels for any items in the import. HOT 1
- Error for no storage location on new audit should refer to audit not transfer. HOT 3
- Check *All* the possible cases of double-clicks on submit-ish buttons HOT 2
- Remove superuser's ability to change user's password 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.