Giter Club home page Giter Club logo

Comments (5)

lukaszb avatar lukaszb commented on May 28, 2024

Hmm, yep, you're right and I totally forgot about it. Am not sure how to fix that now. I suppose I can add a flag to the get_users_with_perms function, Especially as in some cases one wouldn't want superusers to appear on the queryset... (as it reveals superusers' names)

from django-guardian.

rdegges avatar rdegges commented on May 28, 2024

I think a flag would be fine. Kind of like how you have the groups=True/False for some other functions. You could have a boolean superusers that could be default True or something of that sort.

from django-guardian.

lukaszb avatar lukaszb commented on May 28, 2024

Closed by b1631a0 - get_users_with_perms now accepts 'with_superusers' flag

from django-guardian.

lukaszb avatar lukaszb commented on May 28, 2024

Hey, sorry it took so long.

I've added with_superusers flag. Note that default is False - that was required as we already stepped into stable phase and if that new flag would default to True, someone could run into troubles.

from django-guardian.

rdegges avatar rdegges commented on May 28, 2024

Looks awesome, thanks for adding it! Will simplify my code base at work a lot :)

from django-guardian.

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.