merge read and write into access permission