Fixes #4953 added where clause to only change the correct acl