summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax/togglesharewitheveryone.php
blob: 96c43711cb5c843a076c856da19b84e44daa1bcb (plain)
1
2
3
4
5
6
7
8
9
10
11
<?php

OCP\JSON::callCheck();

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');
}