edit rights check