update permission, save history staff type, staff dept