summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax/togglesharewitheveryone.php
blob: dc1105f2f3cc8be63ecebd08f95cbc3f3891d006 (plain)
1
2
3
4
5
6
7
8
9
<?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');
}