issue #7 create helper for to determine user rights