Share » Forums » Developer » Permissions for Custom Module

Permissions for Custom Module

Permissions for Custom Module

Monday 03 May 2010 11:05:02 am - 2 replies

Author Message

Håvard Bergersen

Monday 17 May 2010 12:27:59 pm

Maybe you can use this? Documented here http://ez.no/doc/ez_publish/technical_manual/4_x/reference/modules/user/fetch_functions/has_access_to

{def $access=fetch( 'user', 'has_access_to',                    
hash( 'module',   'yourModule',                          
      'function', 'yourFunction' ) )}

{if $access}    
<a href="#">Your link...</a>
{/if}

Jérôme Vieilledent

Monday 17 May 2010 1:45:27 pm

Hi Erik

eZJSCore extension has a very handy template operator (has_access_to_limitation). You can find details on the extension repository.

Besides, I've written a tutorial about permissions and policy limitation for custom modules. It will be published on share.ez.no very soon ;)

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu