Giter Club home page Giter Club logo

Comments (5)

abachman avatar abachman commented on May 23, 2024

this may be a separate Admin model, since they'll be managing users but not creating donations, for example.

from human-essentials.

seanmarcia avatar seanmarcia commented on May 23, 2024

@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.

cattywampus avatar cattywampus commented on May 23, 2024

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.

armahillo avatar armahillo commented on May 23, 2024

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.

armahillo avatar armahillo commented on May 23, 2024

Fixed by #104

from human-essentials.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.