if.user_can
/ Conditionals / if.user_can
Whether a user has capability or role
Syntax –
[if.user_can]
…
…….code //it uses current user object implicitly
…
[/if.user_can]
Example:
[if.user_can] [aw2.get current_user dump=t /] [/if.user_can]
/ Conditionals / if.user_can
Whether a user has capability or role
Syntax –
[if.user_can]
…
…….code //it uses current user object implicitly
…
[/if.user_can]
Example:
[if.user_can] [aw2.get current_user dump=t /] [/if.user_can]