Lower case permissions check to avoid errors
Moving permissions compare to raid scope