RE: [Acegisecurity-developer] how can GUI ask if an operation will be permited or not?

2004-06-08 Thread Ben Alex
> > > Thank you very much for the explanation. Just another > > > possible solution occurred to me: > > > > > > 1) to define "ask" functions like this in secured beans: > > > > > > public boolean canModify(MyBean obj) { > > > return true; > > > } > > > public boolen canInsert() { > > > return

Re: [Acegisecurity-developer] how can GUI ask if an operation will be permited or not?

2004-06-08 Thread Patrick Vanhuyse
Ben, Could you provide some code samples ? - Original Message - From: "Ben Alex" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 08, 2004 2:16 PM Subject: RE: [Acegisecurity-developer] how can GUI ask if an operation will be permited or not? >

RE: [Acegisecurity-developer] how can GUI ask if an operation will be permited or not?

2004-06-08 Thread Ben Alex
> Thank you very much for the explanation. Just another > possible solution occurred to me: > > 1) to define "ask" functions like this in secured beans: > > public boolean canModify(MyBean obj) { > return true; > } > public boolen canInsert() { > return true; > } > > 2) apply to those func

Re: [Acegisecurity-developer] how can GUI ask if an operation will be permited or not?

2004-06-08 Thread Karel Miarka
> To: <[EMAIL PROTECTED]> Sent: Tuesday, June 08, 2004 12:01 AM Subject: RE: [Acegisecurity-developer] how can GUI ask if an operation will be permited or not? > > Is there an easy way how can the GUI ask a secured bean if an > > operation will be permited or not? Because acco

RE: [Acegisecurity-developer] how can GUI ask if an operation will be permited or not?

2004-06-07 Thread Ben Alex
> Is there an easy way how can the GUI ask a secured bean if an > operation will be permited or not? Because according to the > result it will allow logged user to for example modify some > items or show them read only. > Do I have to implement the same access logic (as in voters) > again in my

[Acegisecurity-developer] how can GUI ask if an operation will be permited or not?

2004-06-07 Thread Karel Miarka
Hi, Is there an easy way how can the GUI ask a secured bean if an operation will be permited or not? Because according to the result it will allow logged user to for example modify some items or show them read only. Do I have to implement the same access logic (as in voters) again in my GUI lookin