[Owncloud] OC.AppConfig.getConfig for noAdmin user?
lebowski at corvus.uberspace.de
lebowski at corvus.uberspace.de
Tue May 21 18:47:38 UTC 2013
Hi,
at the moment i'm trying to write an app, and im trying to get some
config-data from the oc_appconfig table. E.g there is an entry like
appid configkey configvalue
myapp url http://example.com
My app needs this url, because fetching some data from this url. In
particular this means every user, also non-admin user, needs this
config-key. If I use OC.AppConfig.getConfig(..) for the javascript
stuff, i get config values only if i loggt in as admin user. Because
OC.AppConfig.getConfig makes an ajax-call to core/ajax/appconfig.php and
this checks as first OC_Util::checkAdminUser();
Is there a way to get the appconfig keys for non-admin users without
creating an own ajax-file.
Thanks
More information about the Owncloud
mailing list