issue #18861: compound privilege checking
Merge pull request #16 from shackbarth/18861

issue #18861: compound privilege checking