Thank you very much Vincent.
Works like charm
mysql> select * from oc_appconfig where appid = 'core';
+-------+--------------------------------------+-----------------------------------------------------+
| appid | configkey |
configvalue |
+-------+--------------------------------------+-----------------------------------------------------+
| core | incoming_server2server_share_enabled |
yes |
| core | installedat |
1447913981.7271 |
| core | lastcron |
1447934746 |
| core | lastupdateResult |
{"version":{},"versionstring":{},"url":{},"web":{}} |
| core | lastupdatedat |
1447923820 |
| core | outgoing_server2server_share_enabled |
yes |
| core | public_files |
files_sharing/public.php |
| core | public_gallery |
gallery/public.php |
| core | public_webdav |
files_sharing/publicwebdav.php |
| core | remote_files |
files/appinfo/remote.php |
| core | remote_webdav |
files/appinfo/remote.php |
| core | shareapi_allow_mail_notification |
yes |
| core | shareapi_allow_public_notification |
yes |
| core | shareapi_exclude_groups |
no |
+-------+--------------------------------------+-----------------------------------------------------+
14 rows in set (0.00 sec)
Kali
On Thu, Nov 19, 2015 at 10:27 AM, Vincent Petry <[email protected]>
wrote:
> 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
> [email protected]http://mailman.owncloud.org/mailman/listinfo/devel
>
>
>
> _______________________________________________
> Devel mailing list
> [email protected]
> http://mailman.owncloud.org/mailman/listinfo/devel
>
>
_______________________________________________
Devel mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/devel