owncloud / calendar

Calendar app for ownCloud
GNU Affero General Public License v3.0
121 stars 43 forks source link

If in multiple groups with different permissions (read, write) read has higher priority than write #789

Open c-holtermann opened 7 years ago

c-holtermann commented 7 years ago

Steps to reproduce

  1. Have a group A with read permission on a calendar
  2. Have a group B with write permission on the same calendar

Expected behaviour

The users of the group should be allowed to write to the calendar as group B would

Actual behaviour

The user is only allowed to read the calendar as group A would. The calendar is shown as "Abonnement" (german) and not as own calendar.

Server configuration

Operating system: Debian jessie

Web server: Apache

Database: MySQL

PHP version: 5.6.30

Server version: (see your admin page) 9.1.5

Calendar version: (see the apps page) 1.4.1

Updated from an older installed version or fresh install: updated

Signing status (ownCloud/Nextcloud 9.0 and above): Sicherheits- & Einrichtungswarnungen Alle Überprüfungen bestanden.

List of activated apps: Enabled:

The content of config/config.php:

{ "system": { "instanceid": "oc9975ab49a4", "passwordsalt": "REMOVED SENSITIVE VALUE", "secret": "REMOVED SENSITIVE VALUE", "trusteddomains": [ "REMOVED SENSITIVE VALUE" ], "datadirectory": "REMOVED SENSITIVE VALUE", "overwrite.cli.url": "REMOVED SENSITIVE VALUE", "dbtype": "mysql", "version": "9.1.5.2", "dbname": "REMOVED SENSITIVE VALUE", "dbhost": "REMOVED SENSITIVE VALUE", "dbtableprefix": "oc", "dbuser": "REMOVED SENSITIVE VALUE", "dbpassword": "REMOVED SENSITIVE VALUE", "installed": true, "defaultapp": "calendar", "loglevel": "2", "theme": "planungskalender", "maintenance": false, "memcache.local": "\OC\Memcache\APCu", "memcache.distributed": "\OC\Memcache\Memcached", "memcached_servers": [ [ "localhost", 11211 ] ], "mail_from_address": "REMOVED SENSITIVE VALUE", "mail_smtpmode": "php", "mail_domain": "REMOVED SENSITIVE VALUE", "trashbin_retention_obligation": "auto", "updater.secret": "REMOVED SENSITIVE VALUE" } }

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one: no

Client configuration

Browser: mostly firefox

Operating system: linux

CalDAV-clients: multiple

jok2 commented 5 years ago

I've got the same issue with owncloud 10.1.1.1 (can't upgrade to 10.2 yet, PHP 5.6) and calendar 1.6.2.

jok2 commented 5 years ago

It seems to be an issue with the core CalDAVBackend. In Nextcloud this error was fixed in https://github.com/nextcloud/server/pull/3678 , the corresponding issue was https://github.com/nextcloud/server/issues/3677

jok2 commented 5 years ago

I created an issue in ownloud/core: https://github.com/owncloud/core/issues/36008