LUN-1805: allow other permission checks than the ones from cms.
Merge pull request #31 from pbs/LUN-1805

LUN-1805: allow other permission checks than the ones from cms.