display error in top menu
Steps to reproduce
- install app
- limit to group 'example'
- assigning users to group 'example'
Expected behaviour
users outside this group shouldn't see the external links in the top menu
Actual behaviour
a broken icon remains in the top menu for users not member of 'example' the icon is not clickable and doesn't appear in the settings of AppOrder
Server configuration
Operating system: ubuntu
Web server: apache2
Database: maria
PHP version: 8,1 (but is does it too in 7.4)
Nextcloud version: 24.0.3
Where did you install Nextcloud from: stable origine trhough hestia panel (but it does it with manual install too)
List of activated apps: .. lots
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder
Nextcloud configuration:
"system": {
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": {
"0": "localhost",
"2": "kolab.koraland.net"
},
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "24.0.3.2",
"overwrite.cli.url": "http:\/\/localhost",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"app_install_overwrite": [
"documentserver_community"
Client configuration
Browser: brave safari
Operating system: mac os mojave
Logs
Nextcloud log (data/owncloud.log)
Insert your Nextcloud log here
Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
I can not reproduce this. Can you please share your config (Screenshot of the broken entry and the Icon list below) as well as a screenshot of the "not a group member" with the broken icon in the topbar?
hi here the screenshots:
menu of the External sites app, Limit to group:

top menu of the admin user, part of the admin group, allowed to use the app:

top menu of a user which is not in an allowed group: (icon shows a question mark instead of the world icon)

clicking the question mark will bring message: "Could not fetch data"
Without the json array from the config report we can not help you further. It works fine here. Entries feom other groups are not registered at all, so the can also not show a broken icon.
what is the json array? would u like me to look further somewhere?
I would need the result of this database query:
SELECT `configvalue` FROM `oc_appconfig` WHERE `appid` = 'external' AND `configkey` = 'sites';
If you don't have access to the database, you should also be able to get it from the command line:
sudo -u www-data php occ config:app:get external sites
hi sorry, i had lost track of this thread
is this the answer you would like?
{"1":{"id":1,"name":"aide","url":"https://kolab.koraland.net/apps/collectives/p/AWt7zweNDsrNPq7/aide","lang":"","type":"link","device":"","icon":"external.svg","groups":["everyone"],"redirect":false}}
occ command did not work ..