Fixed a bug: non-superuser with user-admin permission could not always set access correctly