nextcloud/impersonate

Notifications from Impersonated User can't be deleted

Opened this issue · 0 comments

Steps to reproduce

Impersonate a other User an than delete a Notification

Expected behaviour

Either the notification can be deleted or the error message should read "As an administrator you are not authorized to delete messages"

Actual behaviour

Currently the error message "Notification could not be discarded" appears.

Unfortunately, you don't see the reason.

Server configuration detail

Operating system: Linux 5.9.0-0.bpo.5-amd64 #1 SMP Debian 5.9.15-1~bpo10+1 (2020-12-31) x86_64

Webserver: nginx/1.14.2 (fpm-fcgi)

Database: mysql 10.3.27

PHP version:

7.3.19-1~deb10u1
Modules loaded: Core, date, libxml, openssl, pcre, zlib, filter, hash, Reflection, SPL, session, sodium, standard, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dom, mbstring, fileinfo, ftp, gd, gettext, gmp, iconv, igbinary, imagick, intl, json, exif, mysqli, pam, pdo_mysql, Phar, posix, readline, redis, shmop, SimpleXML, smbclient, soap, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xmlreader, xmlwriter, xsl, yaml, zip, libsmbclient, Zend OPcache

Nextcloud version: 20.0.6 - 20.0.6.1

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from:

Signing status
List of activated apps
Enabled:
 - activity: 2.13.4
 - announcementcenter: 4.0.1
 - appointments: 1.7.15
 - apporder: 0.11.0
 - bookmarks: 4.0.8
 - bruteforcesettings: 2.0.1
 - calendar: 2.1.3
 - circles: 0.20.6
 - cloud_federation_api: 1.3.0
 - comments: 1.10.0
 - contacts: 3.4.3
 - contactsinteraction: 1.1.0
 - cookbook: 0.7.10
 - cospend: 1.2.9
 - dashboard: 7.0.0
 - dav: 1.16.2
 - deck: 1.2.3
 - documentserver_community: 0.1.8
 - event_update_notification: 1.2.0
 - external: 3.7.2
 - extract: 1.3.0
 - federatedfilesharing: 1.10.2
 - federation: 1.10.1
 - files: 1.15.0
 - files_accesscontrol: 1.10.2
 - files_automatedtagging: 1.10.1
 - files_downloadactivity: 1.9.0
 - files_external: 1.11.1
 - files_linkeditor: 1.1.3
 - files_markdown: 2.3.1
 - files_pdfviewer: 2.0.1
 - files_rightclick: 0.17.0
 - files_sharing: 1.12.2
 - files_trackdownloads: 1.9.0
 - files_trashbin: 1.10.1
 - files_versions: 1.13.0
 - files_videoplayer: 1.9.0
 - firstrunwizard: 2.9.0
 - flowupload: 1.1.2
 - forms: 2.1.0
 - groupfolders: 8.2.0
 - guests: 1.6.2
 - impersonate: 1.7.0
 - integration_github: 0.0.17
 - issuetemplate: 0.7.0
 - keeweb: 0.6.4
 - logreader: 2.5.0
 - lookup_server_connector: 1.8.0
 - maps: 0.1.8
 - metadata: 0.12.0
 - news: 15.1.1
 - nextcloud_announcements: 1.9.0
 - notes: 4.0.2
 - notifications: 2.8.0
 - oauth2: 1.8.0
 - ocdownloader: 1.7.10
 - onlyoffice: 6.2.0
 - password_policy: 1.10.1
 - phonetrack: 0.6.5
 - photos: 1.2.3
 - polls: 1.6.3
 - privacy: 1.4.0
 - provisioning_api: 1.10.0
 - quota_warning: 1.9.1
 - recommendations: 0.8.0
 - richdocuments: 3.7.14
 - richdocumentscode: 6.4.303
 - riotchat: 0.7.0
 - serverinfo: 1.10.0
 - settings: 1.2.0
 - sharebymail: 1.10.0
 - socialsharing_email: 2.1.0
 - spreed: 10.0.5
 - support: 1.3.0
 - survey_client: 1.8.0
 - systemtags: 1.10.0
 - tasks: 0.13.6
 - text: 3.1.0
 - theming: 1.11.0
 - twofactor_admin: 3.0.0
 - twofactor_backupcodes: 1.9.0
 - twofactor_gateway: 0.17.0
 - twofactor_nextcloud_notification: 3.1.0
 - twofactor_totp: 5.0.0
 - twofactor_webauthn: 0.2.6
 - updatenotification: 1.10.0
 - user_status: 1.0.1
 - viewer: 1.4.0
 - weather_status: 1.0.0
 - workflowengine: 2.2.0
Disabled:
 - accessibility
 - admin_audit
 - audioplayer
 - breezedark
 - checksum
 - cms_pico
 - customproperties
 - dashboardcharts
 - data_request
 - encryption
 - files_snapshots
 - groupquota
 - quickaccesssorting
 - radio
 - sendent
 - sharerenamer
 - side_menu
 - social
 - terms_of_service
 - timetracker
 - twofactor_u2f
 - user_ldap

Configuration (config/config.php)
{
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "overwriteprotocol": "https",
    "trusted_domains": [
        "192.168.193.10",
        "server",
        "cloud.weinbauer.heim-server.de"
    ],
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "20.0.6.1",
    "overwrite.cli.url": "https:\/\/cloud.weinbauer.heim-server.de",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "maintenance": false,
    "memcache.local": "\\OC\\Memcache\\APCu",
    "filelocking.enabled": "true",
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": 0,
        "timeout": 0
    },
    "app_install_overwrite": [
        "polls",
        "files_external_dropbox",
        "sharerenamer"
    ],
    "default_language": "de",
    "default_locale": "de_DE",
    "skeletondirectory": "\/srv\/dev-disk-by-label-DatenSSDraid1\/nextcloud-data\/first-login-default-folder",
    "mail_smtpmode": "smtp",
    "mail_sendmailmode": "smtp",
    "mail_smtpsecure": "tls",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpport": "587",
    "mail_smtpauth": 1,
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "mail_smtpauthtype": "PLAIN",
    "preview_max_x": 2160,
    "preview_max_y": 2160,
    "updater.release.channel": "stable",
    "theme": "",
    "logtimezone": "Europe\/Berlin",
    "loglevel": 2,
    "log_rotate_size": 1048576,
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "defaultapp": "apporder",
    "share_folder": "\/empfangene-freigaben",
    "simpleSignUpLink.shown": false,
    "external_storage.auth_availability_delay": 60,
    "data-fingerprint": "a63363a29acd889a8719bb379d8daf96"
}

Are you using external storage, if yes which one:

Are you using encryption:

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

Client configuration

Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0

Operating system:

Logs

Web server error log

Nextcloud log

Browser log