utility.py - add check_access_rights function.