Fix permission for user edit master profile

Also check for all non-master and non-admin users only able to edit their profile