fixed bad order on resource, role model params for getPermission