django-mongonaut icon indicating copy to clipboard operation
django-mongonaut copied to clipboard

has_delete_permissions doesn't work

Open davidbrai opened this issue 12 years ago • 3 comments

I'd expect it to hide the delete button but it didn't. Is it supposed to work at this stage?

davidbrai avatar May 07 '13 12:05 davidbrai

It should work. Sounds like a bug.

pydanny avatar Jul 16 '13 05:07 pydanny

@pydanny the code doesn't seem to look at it in the view. See: https://github.com/pydanny/django-mongonaut/blob/master/mongonaut/templates/mongonaut/actions/action_buttons.html

davidbrai avatar Jul 16 '13 06:07 davidbrai

Ah. It does here: https://github.com/pydanny/django-mongonaut/blob/master/mongonaut/templates/mongonaut/document_detail.html#L25-27

But not in your location. :tomato:

Well, if you want to fix this we accept pull requests. :earth_americas:

pydanny avatar Jul 16 '13 06:07 pydanny