Hi, Those settings are stored in the "oc_appconfig" table with the app id "core".
So you might be able to modify these values by using the following:
\OC::$server->getAppConfig()->setValue('core',
'shareapi_allow_mail_notification', 'yes');
Or if you want to do this from the command line:
"occ config:app:set core shareapi_allow_mail_notification --value="no""
Cheers,
Vincent
On 19.11.2015 10:26, Arkadiusz Kaliwoda wrote:
> [I sent this to [email protected] which i guess is not the best practice.
> So sending to devel list]
>
> Hello,
>
> I am using Share Files 0.6.3 in my ownCloud installation. I would like to
> read/modify the global sharing configuration settings that are in the admin
> page via API. In order to control options like "Allow users to send mail
> notification for shared files" or "Allow users to send mail notification
> for shared files to other users"
>
> I have checked the share API documentation (
> https://doc.owncloud.org/server/6.0/developer_manual/core/ocs-share-api.html)
> and unless i am missing something obvious, I could not find an API to
> control the general sharing settings...
>
> My goal is to configure ownCloud automically with "some settings". Most of
> the default settings are configured via user.config.php, themes, mount.json
> etc. However i am clueless on how to control the admin sharing settings.
>
> I hope that someone on this list knows and can give me a hint
>
> Much appreciated
> Thanks
> Kali
>
>
>
> _______________________________________________
> Devel mailing list
> [email protected]
> http://mailman.owncloud.org/mailman/listinfo/devel
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Devel mailing list [email protected] http://mailman.owncloud.org/mailman/listinfo/devel
