9 lines
294 B
PHP
9 lines
294 B
PHP
|
<?php
|
||
|
|
||
|
OCP\JSON::checkAppEnabled('files_sharing');
|
||
|
OCP\JSON::checkAdminUser();
|
||
|
if ($_POST['allowSharingWithEveryone'] == true) {
|
||
|
OCP\Config::setAppValue('files_sharing', 'allowSharingWithEveryone', 'yes');
|
||
|
} else {
|
||
|
OCP\Config::setAppValue('files_sharing', 'allowSharingWithEveryone', 'no');
|
||
|
}
|