diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2012-09-04 12:51:04 +0300 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2012-09-04 12:51:04 +0300 |
commit | de987b475d2e2868e1ef144cc7df091893e73b66 (patch) | |
tree | 3313436ab7e6e825ffe8236c7f1b0295b24660cb /settings | |
parent | 04aea1eb2ed0530f05928f680568c136acb1d5e5 (diff) | |
download | nextcloud-server-de987b475d2e2868e1ef144cc7df091893e73b66.tar.gz nextcloud-server-de987b475d2e2868e1ef144cc7df091893e73b66.zip |
Update settings/ajax/removeuser.php
respect coding style
Diffstat (limited to 'settings')
-rw-r--r-- | settings/ajax/removeuser.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/settings/ajax/removeuser.php b/settings/ajax/removeuser.php index bfab13a68c8..666adb09d2d 100644 --- a/settings/ajax/removeuser.php +++ b/settings/ajax/removeuser.php @@ -1,21 +1,21 @@ <?php // Init owncloud -require_once('../../lib/base.php'); +require_once '../../lib/base.php'; OC_JSON::checkSubAdminUser(); OCP\JSON::callCheck(); $username = $_POST["username"]; -if(!OC_Group::inGroup(OC_User::getUser(), 'admin') && !OC_SubAdmin::isUserAccessible(OC_User::getUser(), $username)){ +if(!OC_Group::inGroup(OC_User::getUser(), 'admin') && !OC_SubAdmin::isUserAccessible(OC_User::getUser(), $username)) { $l = OC_L10N::get('core'); OC_JSON::error(array( 'data' => array( 'message' => $l->t('Authentication error') ))); exit(); } // Return Success story -if( OC_User::deleteUser( $username )){ +if( OC_User::deleteUser( $username )) { OC_JSON::success(array("data" => array( "username" => $username ))); } else{ |