mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Remove unused private function
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
d984c8d633
commit
68871caf3c
1 changed files with 0 additions and 15 deletions
|
|
@ -111,21 +111,6 @@ class OC_JSON{
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Check is a given user exists - send json error msg if not
|
||||
* @param string $user
|
||||
* @deprecated Use a AppFramework JSONResponse instead
|
||||
* @suppress PhanDeprecatedFunction
|
||||
*/
|
||||
public static function checkUserExists($user) {
|
||||
if (!\OC::$server->getUserManager()->userExists($user)) {
|
||||
$l = \OC::$server->getL10N('lib');
|
||||
OCP\JSON::error(array('data' => array('message' => $l->t('Unknown user'), 'error' => 'unknown_user' )));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Check if the user is a subadmin, send json error msg if not
|
||||
* @deprecated Use annotation based ACLs from the AppFramework instead
|
||||
|
|
|
|||
Loading…
Reference in a new issue