-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace chosen with select2 to provide ajaxified user and group selec…
…tion for files_external, fixes #7499
- Loading branch information
Showing
6 changed files
with
222 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
OCP\JSON::checkAppEnabled('files_external'); | ||
OCP\JSON::callCheck(); | ||
|
||
OCP\JSON::checkAdminUser(); | ||
|
||
$pattern = ''; | ||
$limit = null; | ||
$offset = null; | ||
if (isset($_GET['pattern'])) { | ||
$pattern = $_GET['pattern']; | ||
} | ||
if (isset($_GET['limit'])) { | ||
$limit = $_GET['limit']; | ||
} | ||
if (isset($_GET['offset'])) { | ||
$offset = $_GET['offset']; | ||
} | ||
|
||
$groups = \OC_Group::getGroups($pattern, $limit, $offset); | ||
$users = \OCP\User::getDisplayNames($pattern, $limit, $offset); | ||
|
||
$results = array('groups' => $groups, 'users' => $users); | ||
|
||
\OCP\JSON::success($results); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
/** | ||
* ownCloud - External Storage Routes | ||
* | ||
* @author Vincent Petry | ||
* @copyright 2014 Vincent Petry <[email protected]> | ||
* | ||
* This library is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE | ||
* License as published by the Free Software Foundation; either | ||
* version 3 of the License, or any later version. | ||
* | ||
* This library is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU AFFERO GENERAL PUBLIC LICENSE for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public | ||
* License along with this library. If not, see <http://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
|
||
$this->create('files_external_list_applicable', '/applicable')->actionInclude('files_external/ajax/applicable.php'); | ||
|
||
OC_API::register('get', | ||
'/apps/files_external/api/v1/mounts', | ||
array('\OCA\Files\External\Api', 'getUserMounts'), | ||
'files_external'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters