Correct result from SecurityUtil::checkPermission if passed unregistred user (uid=0)
Merge pull request #761 from nmpetkov/patch-8

Correct result from SecurityUtil if passed unregistered user (uid=0)