Check if app is enabled for user

Fixes https://github.com/owncloud/core/issues/12188 for AppFramework apps