user permission function changed