Hotfix check permissions values are lowercase before comparing them