el expression for "current user is last contributor"

Hello all, my question is in subject. I need to create an action filter to hide a button when the current user is not the last contributor. I tried and other thinks without any success. Any idea ? Many thanks

0 votes

1 answers

3242 views

ANSWER



hello,

the last contributor is a metadata in the dublincore schema. So the correct expression should be

#{currentDocument.dublincore.lastContributor.equals(currentUser.name)}

Kind regards,

Thierry

1 votes