Grails 3 Interceptors

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Grails 3 Interceptors

Joud Kassem
Hi,

How to call a function defined in a controller in its interceptor in grails 3? 

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/c0ac05a7-feca-49cb-8359-853faebe4dcb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Grails 3 Interceptors

sbglasius
You could find the bean instance of your controller and call the method defining the function.

Something like this:

MyController controller = applicationContext.getBean(MyController)

controller.callMyFunction()



Best regards / Med venlig hilsen,
Søren Berg Glasius

Hedevej 1, Gl. Rye, 8680 Ry, Denmark
Mobile: +45 40 44 91 88, Skype: sbglasius
--- Press ESC once to quit - twice to save the changes.


On Mon, 26 Nov 2018 at 13:11, Joud Kassem <[hidden email]> wrote:
Hi,

How to call a function defined in a controller in its interceptor in grails 3? 

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/c0ac05a7-feca-49cb-8359-853faebe4dcb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/CAGY%2BWWRQqD7Kg9TxvucaPrJ%2B8BL5hWDW41afb6a7XFa3YefThA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Grails 3 Interceptors

Joud Kassem
When I do this, I get an error "No bean named 'auth' available"

On Monday, November 26, 2018 at 1:22:45 PM UTC+1, Søren Berg Glasius wrote:
You could find the bean instance of your controller and call the method defining the function.

Something like this:

MyController controller = applicationContext.getBean(MyController)

controller.callMyFunction()



Best regards / Med venlig hilsen,
Søren Berg Glasius

Hedevej 1, Gl. Rye, 8680 Ry, Denmark
Mobile: +45 40 44 91 88, Skype: sbglasius
--- Press ESC once to quit - twice to save the changes.


On Mon, 26 Nov 2018 at 13:11, Joud Kassem <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="VsV7BPsZAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">joud.k...@...> wrote:
Hi,

How to call a function defined in a controller in its interceptor in grails 3? 

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="VsV7BPsZAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">grails-dev-discuss+unsubscribe@....
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="VsV7BPsZAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">grails-de...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/grails-dev-discuss/c0ac05a7-feca-49cb-8359-853faebe4dcb%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/grails-dev-discuss/c0ac05a7-feca-49cb-8359-853faebe4dcb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/grails-dev-discuss/c0ac05a7-feca-49cb-8359-853faebe4dcb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/grails-dev-discuss/c0ac05a7-feca-49cb-8359-853faebe4dcb%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/2f56196c-eaa4-4a0c-a65a-18cda9bb4f09%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Grails 3 Interceptors

Joud Kassem
In reply to this post by sbglasius
Is it possible to get a bean instance from a controller? I'm getting that the bean is not available!

On Monday, November 26, 2018 at 1:22:45 PM UTC+1, Søren Berg Glasius wrote:
You could find the bean instance of your controller and call the method defining the function.

Something like this:

MyController controller = applicationContext.getBean(MyController)

controller.callMyFunction()



Best regards / Med venlig hilsen,
Søren Berg Glasius

Hedevej 1, Gl. Rye, 8680 Ry, Denmark
Mobile: +45 40 44 91 88, Skype: sbglasius
--- Press ESC once to quit - twice to save the changes.


On Mon, 26 Nov 2018 at 13:11, Joud Kassem <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="VsV7BPsZAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">joud.k...@...> wrote:
Hi,

How to call a function defined in a controller in its interceptor in grails 3? 

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="VsV7BPsZAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">grails-dev-discuss+unsubscribe@....
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="VsV7BPsZAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">grails-de...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/grails-dev-discuss/c0ac05a7-feca-49cb-8359-853faebe4dcb%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/grails-dev-discuss/c0ac05a7-feca-49cb-8359-853faebe4dcb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/grails-dev-discuss/c0ac05a7-feca-49cb-8359-853faebe4dcb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/grails-dev-discuss/c0ac05a7-feca-49cb-8359-853faebe4dcb%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/316f8465-0d6c-49c5-90fe-8ab1c6d14ab7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Grails 3 Interceptors

sbglasius
What are you actually trying to archive? The question is, if you would be better off having the method you need to call in a service instead, and then inject that service.

Best regards / Med venlig hilsen,
Søren Berg Glasius

Hedevej 1, Gl. Rye, 8680 Ry, Denmark
Mobile: +45 40 44 91 88, Skype: sbglasius
--- Press ESC once to quit - twice to save the changes.


On Mon, 26 Nov 2018 at 15:10, Joud Kassem <[hidden email]> wrote:
Is it possible to get a bean instance from a controller? I'm getting that the bean is not available!

On Monday, November 26, 2018 at 1:22:45 PM UTC+1, Søren Berg Glasius wrote:
You could find the bean instance of your controller and call the method defining the function.

Something like this:

MyController controller = applicationContext.getBean(MyController)

controller.callMyFunction()



Best regards / Med venlig hilsen,
Søren Berg Glasius

Hedevej 1, Gl. Rye, 8680 Ry, Denmark
Mobile: +45 40 44 91 88, Skype: sbglasius
--- Press ESC once to quit - twice to save the changes.


On Mon, 26 Nov 2018 at 13:11, Joud Kassem <[hidden email]> wrote:
Hi,

How to call a function defined in a controller in its interceptor in grails 3? 

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/c0ac05a7-feca-49cb-8359-853faebe4dcb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/316f8465-0d6c-49c5-90fe-8ab1c6d14ab7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/CAGY%2BWWQAGR_gDAX0u7my4_5Vv2rpVZa4Ua%3DLphyzf5ZxePrs1A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Grails 3 Interceptors

Joud Kassem
This is actually what I ended up doing yesterday... having the method in a service and calling it in the interceptor

On Tuesday, November 27, 2018 at 6:41:13 AM UTC+1, Søren Berg Glasius wrote:
What are you actually trying to archive? The question is, if you would be better off having the method you need to call in a service instead, and then inject that service.

Best regards / Med venlig hilsen,
Søren Berg Glasius

Hedevej 1, Gl. Rye, 8680 Ry, Denmark
Mobile: +45 40 44 91 88, Skype: sbglasius
--- Press ESC once to quit - twice to save the changes.


On Mon, 26 Nov 2018 at 15:10, Joud Kassem <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="UsmXOaZSAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">joud.k...@...> wrote:
Is it possible to get a bean instance from a controller? I'm getting that the bean is not available!

On Monday, November 26, 2018 at 1:22:45 PM UTC+1, Søren Berg Glasius wrote:
You could find the bean instance of your controller and call the method defining the function.

Something like this:

MyController controller = applicationContext.getBean(MyController)

controller.callMyFunction()



Best regards / Med venlig hilsen,
Søren Berg Glasius

Hedevej 1, Gl. Rye, 8680 Ry, Denmark
Mobile: +45 40 44 91 88, Skype: sbglasius
--- Press ESC once to quit - twice to save the changes.


On Mon, 26 Nov 2018 at 13:11, Joud Kassem <[hidden email]> wrote:
Hi,

How to call a function defined in a controller in its interceptor in grails 3? 

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-discuss+[hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/grails-dev-discuss/c0ac05a7-feca-49cb-8359-853faebe4dcb%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/grails-dev-discuss/c0ac05a7-feca-49cb-8359-853faebe4dcb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/grails-dev-discuss/c0ac05a7-feca-49cb-8359-853faebe4dcb%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/grails-dev-discuss/c0ac05a7-feca-49cb-8359-853faebe4dcb%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="UsmXOaZSAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">grails-dev-discuss+unsubscribe@....
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="UsmXOaZSAgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">grails-de...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/grails-dev-discuss/316f8465-0d6c-49c5-90fe-8ab1c6d14ab7%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/grails-dev-discuss/316f8465-0d6c-49c5-90fe-8ab1c6d14ab7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/grails-dev-discuss/316f8465-0d6c-49c5-90fe-8ab1c6d14ab7%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/grails-dev-discuss/316f8465-0d6c-49c5-90fe-8ab1c6d14ab7%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/18ac48e5-dc9d-4af2-96e5-6a2e860e733c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Grails 3 Interceptors

Jeff Scott Brown-4
In reply to this post by sbglasius
On 26 Nov 2018, at 6:22, Søren Berg Glasius wrote:

> You could find the bean instance of your controller and call the
> method
> defining the function.
>
> Something like this:
>
> MyController controller = applicationContext.getBean(MyController)
>
> controller.callMyFunction()
>
>

There is really no good reason to ever do that.

It is hard to say exactly what the best solution is without knowing what
you are trying to accomplish but a likely solution is to have that logic
in a Service and inject that service into the interceptor.  If the same
behavior is needed from the controller, inject the same service into he
controller.



JSB

--
Jeff Scott Brown
OCI Partner and Principal Software Engineer
OCI Grails and Micronaut Practice Lead

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/D48C5720-508F-4F4B-99D2-2DBF8D5BF93E%40objectcomputing.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Grails 3 Interceptors

Joud Kassem
Hi Jeff,

We call some controller functions in the before interceptor to manipulate the passed parameters and check user's permissions ..etc This was fine in grails 2 when the interceptors were defined in the controller itself but in Grails 3, it became a problem. But moving the logic to a service and injecting the service into the interceptor worked fine + I had to move some logic to the interceptor itself... I don't know if this is the best solution but I didn't find another one..


On Wednesday, November 28, 2018 at 12:28:34 AM UTC+1, Jeff Scott Brown wrote:
On 26 Nov 2018, at 6:22, Søren Berg Glasius wrote:

> You could find the bean instance of your controller and call the
> method
> defining the function.
>
> Something like this:
>
> MyController controller = applicationContext.getBean(MyController)
>
> controller.callMyFunction()
>
>

There is really no good reason to ever do that.

It is hard to say exactly what the best solution is without knowing what
you are trying to accomplish but a likely solution is to have that logic
in a Service and inject that service into the interceptor.  If the same
behavior is needed from the controller, inject the same service into he
controller.



JSB

--
Jeff Scott Brown
OCI Partner and Principal Software Engineer
OCI Grails and Micronaut Practice Lead

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
<a href="http://www.autismspeaks.org/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;">http://www.autismspeaks.org/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/87d13d4e-059d-4b0f-9da8-cd354bba1e39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Grails 3 Interceptors

Jeff Scott Brown-4
On 28 Nov 2018, at 2:52, Joud Kassem wrote:

> Hi Jeff,
>
> We call some controller functions in the before interceptor to
> manipulate
> the passed parameters and check user's permissions ..etc This was fine
> in
> grails 2 when the interceptors were defined in the controller itself
> but in
> Grails 3, it became a problem. But moving the logic to a service and
> injecting the service into the interceptor worked fine + I had to move
> some
> logic to the interceptor itself... I don't know if this is the best
> solution but I didn't find another one..
>

Great.

FYI… You should be able to manipulated params and check user
permissions in an interceptor without ever interacting with a
controller.  All of the relevant information is available in the
interceptor itself.

I am glad you got a working solution.  Well done!




JSB
--
Jeff Scott Brown
OCI Partner and Principal Software Engineer
OCI Grails and Micronaut Practice Lead

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/057371FD-C95D-4BCE-A4ED-7B7EB1365CA5%40objectcomputing.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Grails 3 Interceptors

Joud Kassem
Thank you! Out of curiosity, is there a guide or a bit of information about how to check user permissions directly in interceptors?

All the best,
Joud

On Wednesday, November 28, 2018 at 2:13:02 PM UTC+1, Jeff Scott Brown wrote:
On 28 Nov 2018, at 2:52, Joud Kassem wrote:

> Hi Jeff,
>
> We call some controller functions in the before interceptor to
> manipulate
> the passed parameters and check user's permissions ..etc This was fine
> in
> grails 2 when the interceptors were defined in the controller itself
> but in
> Grails 3, it became a problem. But moving the logic to a service and
> injecting the service into the interceptor worked fine + I had to move
> some
> logic to the interceptor itself... I don't know if this is the best
> solution but I didn't find another one..
>

Great.

FYI… You should be able to manipulated params and check user
permissions in an interceptor without ever interacting with a
controller.  All of the relevant information is available in the
interceptor itself.

I am glad you got a working solution.  Well done!




JSB
--
Jeff Scott Brown
OCI Partner and Principal Software Engineer
OCI Grails and Micronaut Practice Lead

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
<a href="http://www.autismspeaks.org/" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.autismspeaks.org%2F\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHLOilSQBYB1lzLN6Ms6K6DtQY5DQ&#39;;return true;">http://www.autismspeaks.org/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/58706e7f-6ece-484f-afa8-4a9a8b2d9f6d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Grails 3 Interceptors

Jeff Scott Brown-4
On 28 Nov 2018, at 13:29, Joud Kassem wrote:

> Thank you! Out of curiosity, is there a guide or a bit of information about
> how to check user permissions directly in interceptors?
>

The way to do that depends on what “check user permissions” really means.

How do you keep track of permissions?



JSB

--
Jeff Scott Brown
OCI Partner and Principal Software Engineer
OCI Grails and Micronaut Practice Lead

Autism Strikes 1 in 166
Find The Cause ~ Find The Cure
http://www.autismspeaks.org/

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/D96A47EA-2AE6-4202-9181-FA47AF328FBF%40objectcomputing.com.
For more options, visit https://groups.google.com/d/optout.