Fix permission checks in portlet and viewlet

The permission checks in the labeling viewlet and the labels jar portlet were wrong: the permission ID was used for the check, but it should be the permission title.

Fixes #34