Check if app is enabled for user

Fixes https://github.com/owncloud/core/issues/12188 for AppFramework apps
Merge pull request #12189 from owncloud/checkIfAppIsEnabled

Check if app is enabled for user