Just guessing, but I would look at the Advanced settings in your ACL and see if you are enforcing a consistent ACL across all replicas. See what your ACL is set at for both replicas.
Thanks for the quick response. The database on the server does have enforce consistant acl. The database used to work but just started getting this message. I tried turning off the enforce acl and creating a brand new replica but that still came up with the same error. I then removed the user from a group and named them specifically in the acl and that also came up with the same error.
As a last resort I pulled it from the server to local by forcing replication. This worked but told the user who had editor access they were not authorised to access the database.