elleracompany / craft-cookie-consent

GDPR-Compliant cookie consent banner for Craft CMS
Other
6 stars 6 forks source link

Default-site consents wrongfully listed for multisite users without access to default #42

Closed sieir closed 4 years ago

sieir commented 4 years ago

Steps to reproduce:

  1. Log in as user with access to one of the sites in a multisite setup, which isn't the main/default site.
  2. Access GDPR Cookie Consent in left admin menu (user must have been given rights to access plugin).
  3. Click "View consents" in plugin menu.

Bug: The consents loaded in this view belongs to the default site, which the user doesn't have access to. URL is: admin/cookie-consent/site/default/consent (and not admin/cookie-consent/site/selected-site/consent as expected).

In order to display the consents I'm looking for, I have to go to the site selector dropdown and select the site which is currently selected, then go into "View consents" again.