Modify getMergedPermissions() returned array.