I have a portlet with
<t:commandLink ... enabledOnUserRole="User">
One must add <security-role-ref> <role-name>User</role-name> </security-role-ref>to portlet.xml