On 21 Jan, 2006, at 11:52 am, reflog wrote:
So in your controller method you could place: if has_permission('can_admin') and identity.current.user==page.owner: do something else: do something else The reason this won't plug into the decorator is I don't know *before* the method executes what the value of page is (or even that there *will* be a page variable). So I can't check its owner. Plus there's no project agnostic way of specifying ownership. -- Jeff Watkins "Computers are like Old Testament gods; lots of rules and no mercy." -- Joseph Campbell |
- [TurboGears] Re: No peak.security for 0.9 Jeff Watkins
- [TurboGears] Re: No peak.security for 0.9 Simon Belak
- [TurboGears] Re: No peak.security for 0.9 Ksenia Marasanova
- [TurboGears] Re: No peak.security for 0.9 reflog
- [TurboGears] Re: No peak.security for 0.9 Jeff Watkins
- [TurboGears] Re: No peak.security for 0.9 Phillip J. Eby
- [TurboGears] Re: No peak.security for 0.9 Kevin Dangoor
- [TurboGears] Re: No peak.security for 0.9 Phillip J. Eby
- [TurboGears] Re: No peak.security for 0... Kevin Dangoor
- [TurboGears] Re: No peak.security for 0... Jorge Godoy
- [TurboGears] Re: No peak.security ... Jeff Watkins
- [TurboGears] Re: No peak.security for 0.9 Kevin Dangoor

