Code Monkey home page Code Monkey logo

Comments (13)

saxix avatar saxix commented on May 13, 2024

the expected behaviour should be to check for permission when you try to use any action but display all the registered actions. (see code here ).

If you can confirm it is a bug and you send a PR, I will be happy to merge.

from django-adminactions.

saxix avatar saxix commented on May 13, 2024

@olivierdalang any updates on this issue ?

from django-adminactions.

olivierdalang avatar olivierdalang commented on May 13, 2024

Hi,

Sorry I gave no news, but I tested right now on a fresh install, and it seems indeed that I get
Sorry you do not have rights to execute this action (testapp.adminactions_export_people) for any user except super-user, and no matter if the permission is assigned directly to the user or to one of his groups.

I'll definitely give it a shot as soon as I have a bit more time, so I'd suggest to keep the issue open (unless you can't reproduce the bug)

from django-adminactions.

saxix avatar saxix commented on May 13, 2024

did you grant 'adminactions_[ACTION]_[MODEL]' to your users? in thjs case testapp.adminactions_export_people

from django-adminactions.

olivierdalang avatar olivierdalang commented on May 13, 2024

yes (from the groups/users admin module)

2015-11-26 13:03 GMT+00:00 saxix [email protected]:

did you grant 'adminactions_[ACTION]_[MODEL]' to your users?


Reply to this email directly or view it on GitHub
#79 (comment)
.

from django-adminactions.

saxix avatar saxix commented on May 13, 2024

this is strange, just added a test for that, can you try the develop branch ? I'm close to release 1.0 but don't want to package with this error.

from django-adminactions.

int-ua avatar int-ua commented on May 13, 2024

I don't have any adminactions_[ACTION]_[MODEL] permissions in the user administration (/admin/auth/user/2/). Is that a symptom? I also have the permission problem and I can't even assign the permission in the admin panel. Checking if the permission exists in DB.

from django-adminactions.

int-ua avatar int-ua commented on May 13, 2024

All adminactions permissions are listed in user.get_all_permissions() but not in Permission.objects.all(). Any way to set the permission? As I can't get it through django.contrib.auth.models.Permission.

from django-adminactions.

saxix avatar saxix commented on May 13, 2024

permissions are created by create_extra_permission handler, it should be invoked when syncdb/migrate is executed. e8297f8 add new test to check Permission table.

from django-adminactions.

saxix avatar saxix commented on May 13, 2024

any updates on this issue ? I'm not able to reproduce it and the related test works as expected.

from django-adminactions.

olivierdalang avatar olivierdalang commented on May 13, 2024

Hi,

Sorry for the lack of feedback. I'm testing again right now with 1.0, it works fine on a clean install, but still doesn't work on my site... I tried dropping all permissions, but I still get Sorry you do not have rights to execute this action when trying to export entries while logged as an user in a group that has the export permission.

Any idea where the bug could come from ?

from django-adminactions.

saxix avatar saxix commented on May 13, 2024

@olivierdalang realy do not get the issue where come from. I added a test for it. can you share some other info (ie. where did you add the action (Modeladmin or site), are you able to invoke pdb to investigte the issue ?

from django-adminactions.

olivierdalang avatar olivierdalang commented on May 13, 2024

Ok I found the cause, it's because my modules have capital letters. Here's a PR to fix it :
#89

(there are some conflicts, I'll rebase this afternoon)

from django-adminactions.

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.