owncloud / core

:cloud: ownCloud web server core (Files, DAV, etc.)
https://owncloud.com
GNU Affero General Public License v3.0
8.37k stars 2.06k forks source link

Apps that are enabled for certain groups only are shown as disabled at `php occ app:list` #17737

Closed pbek closed 8 years ago

pbek commented 9 years ago

Steps to reproduce

  1. Enable app for only one group, for example "admin". (In table oc_appconfig the configValue for enabled would be ["admin"], everything is ok if it is yes.)
  2. Call php occ app:list.

    Expected behaviour

App should be shown as enabled.

Actual behaviour

App is shown as disabled.

Server configuration

Operating system: Ubuntu Linux 15.04 Web server: Apache Database: MySQL PHP version: 5.6.4 ownCloud version: (see ownCloud admin page) 8.2 pre alpha Updated from an older ownCloud or fresh install: update List of activated apps: Enabled:

Disabled:

The content of config/config.php:

{
    "system": {
        "instanceid": "ociuf2r3opzp",
        "trusted_domains": [
            "localhost"
        ],
        "datadirectory": "\/home\/omega\/Web\/owncloud\/data",
        "overwrite.cli.url": "http:\/\/localhost:8080",
        "dbtype": "mysql",
        "version": "8.2.0.2",
        "dbname": "owncloud",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "logtimezone": "UTC",
        "installed": true,
        "theme": "",
        "maintenance": false
    }
}

Are you using external storage, if yes which one: local/smb/sftp/... no

Are you using encryption: yes/no no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... no

Logs

Web server error log

nothing was logged

ownCloud log (data/owncloud.log)

nothing was logged

LukasReschke commented 9 years ago

@icewind1991 I'm somewhat reluctant to modify \OC_App::isEnabled here, is there any public API such as \OCP\App\IAppManager::isEnabledForUser for all users?

icewind1991 commented 9 years ago

\OCP\App\IAppManager::isInstalled is what you're looking for

MorrisJobke commented 8 years ago

Fix is in #21724

lock[bot] commented 5 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.