#358 ✓wontfix
bronson

Edit button remains after removing update permission

Reported by bronson | January 5th, 2009 @ 07:25 AM

My model has:

auto_actions :all, :except => [:index, :update]

Problem is, its Show page still contains an Edit Model link. When I click on the link, I get an empty Edit page -- the only thing on it is the Remove This Model button.

I would have expected the Edit Model button to not show up and (assuming the :destroy action is allowed) the Delete Model button to show up in its place. Or something like that.

Comments and changes to this ticket

  • Tom Locke

    Tom Locke January 6th, 2009 @ 04:37 PM

    • State changed from “new” to “wontfix”

    I think you should remove the edit action as well as the update action in this case. It doesn't make much sense to have edit but not update.

    Good idea about the delete button on the show-page - I'll make a separate ticket for that

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages