finish add permission and modify permission