Image permission.
このコミットが含まれているのは:
コミット
e144e79d48
|
@ -24,125 +24,74 @@ class ImageController extends Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getUserWithUploads(Request $request) { // /api/rpc/image/get/userwithuploads
|
public function getUserWithUploads(Request $request) { // /api/rpc/image/get/userwithuploads
|
||||||
$cols = $this->objUser->getGroupColours()->toArray();
|
$valid = $this->objAuth->getPermissions($request->username, $request->password);
|
||||||
$imgs = File::directories('storage/assets/images');
|
|
||||||
|
|
||||||
$res = array();
|
if ($valid['img_view'] == 1) {
|
||||||
|
$cols = $this->objUser->getGroupColours()->toArray();
|
||||||
|
$imgs = File::directories('storage/assets/images');
|
||||||
|
|
||||||
foreach($imgs as $img) {
|
$res = array();
|
||||||
$usr = basename($img);
|
|
||||||
$protocol = isset($_SERVER["HTTPS"]) ? 'https' : 'http';
|
|
||||||
|
|
||||||
if ($usr != 0) {
|
foreach($imgs as $img) {
|
||||||
$user = $this->objUser->getUser($usr, $request)->toArray();
|
$usr = basename($img);
|
||||||
$showName = "";
|
$protocol = isset($_SERVER["HTTPS"]) ? 'https' : 'http';
|
||||||
$showCol = "";
|
|
||||||
|
|
||||||
if ($user[0]->display_name !== '') {
|
if ($usr != 0) {
|
||||||
$showName = $user[0]->display_name;
|
$user = $this->objUser->getUser($usr, $request)->toArray();
|
||||||
}
|
$showName = "";
|
||||||
else {
|
$showCol = "";
|
||||||
$showName = $user[0]->username;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($user[0]->name_style !== '') {
|
if ($user[0]->display_name !== '') {
|
||||||
$showCol = $user[0]->name_style;
|
$showName = $user[0]->display_name;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
foreach($cols as $cl) {
|
$showName = $user[0]->username;
|
||||||
if ($cl->id === $user[0]->perm_id) {
|
}
|
||||||
if ($user[0]->gender === 1) $showCol = $cl->colour_m;
|
|
||||||
else if ($user[0]->gender === 2) $showCol = $cl->colour_f;
|
if ($user[0]->name_style !== '') {
|
||||||
else $showCol = $cl->colour_u;
|
$showCol = $user[0]->name_style;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
foreach($cols as $cl) {
|
||||||
|
if ($cl->id === $user[0]->perm_id) {
|
||||||
|
if ($user[0]->gender === 1) $showCol = $cl->colour_m;
|
||||||
|
else if ($user[0]->gender === 2) $showCol = $cl->colour_f;
|
||||||
|
else $showCol = $cl->colour_u;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
else {
|
||||||
else {
|
$showName = "";
|
||||||
$showName = "";
|
$showCol = "";
|
||||||
$showCol = "";
|
}
|
||||||
|
|
||||||
|
$res[] = array(
|
||||||
|
'id' => basename($img),
|
||||||
|
'avatar' => $protocol.'://'.$_SERVER['SERVER_NAME'].'/'.($user[0]->avatar != '' ? $user[0]->avatar : 'assets/avatars/haznoavaz.png'),
|
||||||
|
'userCol' => $showCol,
|
||||||
|
'userName' => $showName
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$res[] = array(
|
return $res;
|
||||||
'id' => basename($img),
|
|
||||||
'avatar' => $protocol.'://'.$_SERVER['SERVER_NAME'].'/'.($user[0]->avatar != '' ? $user[0]->avatar : 'assets/avatars/haznoavaz.png'),
|
|
||||||
'userCol' => $showCol,
|
|
||||||
'userName' => $showName
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $res;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getAll(Request $request) { // /api/rpc/image/get/all
|
public function getAll(Request $request) { // /api/rpc/image/get/all
|
||||||
$cols = $this->objUser->getGroupColours()->toArray();
|
$valid = $this->objAuth->getPermissions($request->username, $request->password);
|
||||||
$imgs = File::files('storage/assets/images/*');
|
|
||||||
|
|
||||||
$res = array();
|
if ($valid['img_view'] == 1) {
|
||||||
|
$cols = $this->objUser->getGroupColours()->toArray();
|
||||||
|
$imgs = File::files('storage/assets/images/*');
|
||||||
|
|
||||||
foreach ($imgs as $img) {
|
$res = array();
|
||||||
$usr = preg_split("#/#", $img->getPathname());
|
|
||||||
$protocol = isset($_SERVER["HTTPS"]) ? 'https' : 'http';
|
|
||||||
|
|
||||||
if ($usr[3] != 0) {
|
|
||||||
$user = $this->objUser->getUser($usr[3], $request)->toArray();
|
|
||||||
$showName = "";
|
|
||||||
$showCol = "";
|
|
||||||
|
|
||||||
if ($user[0]->display_name !== '') {
|
|
||||||
$showName = $user[0]->display_name;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$showName = $user[0]->username;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($user[0]->name_style !== '') {
|
|
||||||
$showCol = $user[0]->name_style;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
foreach($cols as $cl) {
|
|
||||||
if ($cl->id === $user[0]->perm_id) {
|
|
||||||
if ($user[0]->gender === 1) $showCol = $cl->colour_m;
|
|
||||||
else if ($user[0]->gender === 2) $showCol = $cl->colour_f;
|
|
||||||
else $showCol = $cl->colour_u;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$showName = "";
|
|
||||||
$showCol = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
$res[] = array(
|
|
||||||
'id' => $usr[3],
|
|
||||||
'avatar' => $protocol.'://'.$_SERVER['SERVER_NAME'].'/'.($user[0]->avatar != '' ? $user[0]->avatar : 'assets/avatars/haznoavaz.png'),
|
|
||||||
'name' => $img->getFilename(),
|
|
||||||
'userCol' => $showCol,
|
|
||||||
'userName' => $showName,
|
|
||||||
'image' => $protocol.'://'.$_SERVER['SERVER_NAME'].'/'.$img->getPathname()
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $res;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getOwn(Request $request) { // /api/rpc/image/get/own
|
|
||||||
$check = $this->objAuth->checkLegit($request->username, $request->password);
|
|
||||||
$cols = $this->objUser->getGroupColours()->toArray();
|
|
||||||
$imgs = File::files('storage/assets/images/'.$check);
|
|
||||||
|
|
||||||
$res = array();
|
|
||||||
|
|
||||||
if ($check == 0) {
|
|
||||||
return 'Err!';
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
foreach ($imgs as $img) {
|
foreach ($imgs as $img) {
|
||||||
$usr = preg_split("#/#", $img->getPathname());
|
$usr = preg_split("#/#", $img->getPathname());
|
||||||
$protocol = isset($_SERVER["HTTPS"]) ? 'https' : 'http';
|
$protocol = isset($_SERVER["HTTPS"]) ? 'https' : 'http';
|
||||||
|
|
||||||
if ($usr[3] == $check) {
|
if ($usr[3] != 0) {
|
||||||
$user = $this->objUser->getUser($usr[3], $request)->toArray();
|
$user = $this->objUser->getUser($usr[3], $request)->toArray();
|
||||||
$showName = "";
|
$showName = "";
|
||||||
$showCol = "";
|
$showCol = "";
|
||||||
|
@ -181,87 +130,36 @@ class ImageController extends Controller {
|
||||||
'image' => $protocol.'://'.$_SERVER['SERVER_NAME'].'/'.$img->getPathname()
|
'image' => $protocol.'://'.$_SERVER['SERVER_NAME'].'/'.$img->getPathname()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return $res;
|
return $res;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getUser($id, Request $request) { // /api/rpc/image/get/user/id
|
public function getOwn(Request $request) { // /api/rpc/image/get/own
|
||||||
$cols = $this->objUser->getGroupColours()->toArray();
|
|
||||||
$imgs = File::files('storage/assets/images/'.$id);
|
|
||||||
|
|
||||||
$res = array();
|
|
||||||
|
|
||||||
foreach ($imgs as $img) {
|
|
||||||
$usr = preg_split("#/#", $img->getPathname());
|
|
||||||
$protocol = isset($_SERVER["HTTPS"]) ? 'https' : 'http';
|
|
||||||
|
|
||||||
if ($usr[3] != 0) {
|
|
||||||
$user = $this->objUser->getUser($usr[3], $request)->toArray();
|
|
||||||
$showName = "";
|
|
||||||
$showCol = "";
|
|
||||||
|
|
||||||
if ($user[0]->display_name !== '') {
|
|
||||||
$showName = $user[0]->display_name;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$showName = $user[0]->username;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($user[0]->name_style !== '') {
|
|
||||||
$showCol = $user[0]->name_style;
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
foreach($cols as $cl) {
|
|
||||||
if ($cl->id === $user[0]->perm_id) {
|
|
||||||
if ($user[0]->gender === 1) $showCol = $cl->colour_m;
|
|
||||||
else if ($user[0]->gender === 2) $showCol = $cl->colour_f;
|
|
||||||
else $showCol = $cl->colour_u;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$showName = "";
|
|
||||||
$showCol = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
$res[] = array(
|
|
||||||
'id' => $id,
|
|
||||||
'avatar' => $protocol.'://'.$_SERVER['SERVER_NAME'].'/'.($user[0]->avatar != '' ? $user[0]->avatar : 'assets/avatars/haznoavaz.png'),
|
|
||||||
'name' => $img->getFilename(),
|
|
||||||
'userCol' => $showCol,
|
|
||||||
'userName' => $showName,
|
|
||||||
'image' => $protocol.'://'.$_SERVER['SERVER_NAME'].'/'.$img->getPathname()
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $res;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function getOther(Request $request) { // /api/rpc/image/get/other
|
|
||||||
$check = $this->objAuth->checkLegit($request->username, $request->password);
|
$check = $this->objAuth->checkLegit($request->username, $request->password);
|
||||||
$cols = $this->objUser->getGroupColours()->toArray();
|
|
||||||
$dirs = File::directories('storage/assets/images');
|
|
||||||
|
|
||||||
$res = array();
|
|
||||||
|
|
||||||
if ($check == 0) {
|
if ($check == 0) {
|
||||||
return 'Err!';
|
return 'Err!';
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
foreach ($dirs as $dir) {
|
$valid = $this->objAuth->getPermissions($request->username, $request->password);
|
||||||
$usr = 0;
|
|
||||||
|
|
||||||
if (basename($dir) != $check) {
|
if ($valid['img_view'] == 1) {
|
||||||
$usr = basename($dir);
|
$cols = $this->objUser->getGroupColours()->toArray();
|
||||||
$imgs = File::files('assets/images/'.$usr);
|
$imgs = File::files('storage/assets/images/'.$check);
|
||||||
|
|
||||||
|
$res = array();
|
||||||
|
|
||||||
|
if ($check == 0) {
|
||||||
|
return 'Err!';
|
||||||
|
}
|
||||||
|
else {
|
||||||
foreach ($imgs as $img) {
|
foreach ($imgs as $img) {
|
||||||
|
$usr = preg_split("#/#", $img->getPathname());
|
||||||
$protocol = isset($_SERVER["HTTPS"]) ? 'https' : 'http';
|
$protocol = isset($_SERVER["HTTPS"]) ? 'https' : 'http';
|
||||||
|
|
||||||
if ($usr != $check) {
|
if ($usr[3] == $check) {
|
||||||
$user = $this->objUser->getUser($usr, $request)->toArray();
|
$user = $this->objUser->getUser($usr[3], $request)->toArray();
|
||||||
$showName = "";
|
$showName = "";
|
||||||
$showCol = "";
|
$showCol = "";
|
||||||
|
|
||||||
|
@ -291,7 +189,7 @@ class ImageController extends Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
$res[] = array(
|
$res[] = array(
|
||||||
'id' => $usr,
|
'id' => $usr[3],
|
||||||
'avatar' => $protocol.'://'.$_SERVER['SERVER_NAME'].'/'.($user[0]->avatar != '' ? $user[0]->avatar : 'assets/avatars/haznoavaz.png'),
|
'avatar' => $protocol.'://'.$_SERVER['SERVER_NAME'].'/'.($user[0]->avatar != '' ? $user[0]->avatar : 'assets/avatars/haznoavaz.png'),
|
||||||
'name' => $img->getFilename(),
|
'name' => $img->getFilename(),
|
||||||
'userCol' => $showCol,
|
'userCol' => $showCol,
|
||||||
|
@ -300,20 +198,167 @@ class ImageController extends Controller {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return $res;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return 'Permission denied.';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return $res;
|
public function getUser($id, Request $request) { // /api/rpc/image/get/user/id
|
||||||
|
$valid = $this->objAuth->getPermissions($request->username, $request->password);
|
||||||
|
|
||||||
|
if ($valid['img_view'] == 1) {
|
||||||
|
$cols = $this->objUser->getGroupColours()->toArray();
|
||||||
|
$imgs = File::files('storage/assets/images/'.$id);
|
||||||
|
|
||||||
|
$res = array();
|
||||||
|
|
||||||
|
foreach ($imgs as $img) {
|
||||||
|
$usr = preg_split("#/#", $img->getPathname());
|
||||||
|
$protocol = isset($_SERVER["HTTPS"]) ? 'https' : 'http';
|
||||||
|
|
||||||
|
if ($usr[3] != 0) {
|
||||||
|
$user = $this->objUser->getUser($usr[3], $request)->toArray();
|
||||||
|
$showName = "";
|
||||||
|
$showCol = "";
|
||||||
|
|
||||||
|
if ($user[0]->display_name !== '') {
|
||||||
|
$showName = $user[0]->display_name;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$showName = $user[0]->username;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($user[0]->name_style !== '') {
|
||||||
|
$showCol = $user[0]->name_style;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
foreach($cols as $cl) {
|
||||||
|
if ($cl->id === $user[0]->perm_id) {
|
||||||
|
if ($user[0]->gender === 1) $showCol = $cl->colour_m;
|
||||||
|
else if ($user[0]->gender === 2) $showCol = $cl->colour_f;
|
||||||
|
else $showCol = $cl->colour_u;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$showName = "";
|
||||||
|
$showCol = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
$res[] = array(
|
||||||
|
'id' => $id,
|
||||||
|
'avatar' => $protocol.'://'.$_SERVER['SERVER_NAME'].'/'.($user[0]->avatar != '' ? $user[0]->avatar : 'assets/avatars/haznoavaz.png'),
|
||||||
|
'name' => $img->getFilename(),
|
||||||
|
'userCol' => $showCol,
|
||||||
|
'userName' => $showName,
|
||||||
|
'image' => $protocol.'://'.$_SERVER['SERVER_NAME'].'/'.$img->getPathname()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $res;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getOther(Request $request) { // /api/rpc/image/get/other
|
||||||
|
$check = $this->objAuth->checkLegit($request->username, $request->password);
|
||||||
|
|
||||||
|
if ($check == 0) {
|
||||||
|
return 'Err!';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$valid = $this->objAuth->getPermissions($request->username, $request->password);
|
||||||
|
|
||||||
|
if ($valid['img_view'] == 1) {
|
||||||
|
$cols = $this->objUser->getGroupColours()->toArray();
|
||||||
|
$dirs = File::directories('storage/assets/images');
|
||||||
|
|
||||||
|
$res = array();
|
||||||
|
|
||||||
|
if ($check == 0) {
|
||||||
|
return 'Err!';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
foreach ($dirs as $dir) {
|
||||||
|
$usr = 0;
|
||||||
|
|
||||||
|
if (basename($dir) != $check) {
|
||||||
|
$usr = basename($dir);
|
||||||
|
$imgs = File::files('assets/images/'.$usr);
|
||||||
|
|
||||||
|
foreach ($imgs as $img) {
|
||||||
|
$protocol = isset($_SERVER["HTTPS"]) ? 'https' : 'http';
|
||||||
|
|
||||||
|
if ($usr != $check) {
|
||||||
|
$user = $this->objUser->getUser($usr, $request)->toArray();
|
||||||
|
$showName = "";
|
||||||
|
$showCol = "";
|
||||||
|
|
||||||
|
if ($user[0]->display_name !== '') {
|
||||||
|
$showName = $user[0]->display_name;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$showName = $user[0]->username;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($user[0]->name_style !== '') {
|
||||||
|
$showCol = $user[0]->name_style;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
foreach($cols as $cl) {
|
||||||
|
if ($cl->id === $user[0]->perm_id) {
|
||||||
|
if ($user[0]->gender === 1) $showCol = $cl->colour_m;
|
||||||
|
else if ($user[0]->gender === 2) $showCol = $cl->colour_f;
|
||||||
|
else $showCol = $cl->colour_u;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$showName = "";
|
||||||
|
$showCol = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
$res[] = array(
|
||||||
|
'id' => $usr,
|
||||||
|
'avatar' => $protocol.'://'.$_SERVER['SERVER_NAME'].'/'.($user[0]->avatar != '' ? $user[0]->avatar : 'assets/avatars/haznoavaz.png'),
|
||||||
|
'name' => $img->getFilename(),
|
||||||
|
'userCol' => $showCol,
|
||||||
|
'userName' => $showName,
|
||||||
|
'image' => $protocol.'://'.$_SERVER['SERVER_NAME'].'/'.$img->getPathname()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $res;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return 'Permission denied.';
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function viewImage(Request $request) { // /api/rpc/image/view
|
public function viewImage(Request $request) { // /api/rpc/image/view
|
||||||
$protocol = isset($_SERVER["HTTPS"]) ? 'https' : 'http';
|
$valid = $this->objAuth->getPermissions($request->username, $request->password);
|
||||||
|
|
||||||
if (!isset($request->id) || !isset($request->name)) {
|
if ($valid['img_view'] == 1) {
|
||||||
return 'Err!';
|
$protocol = isset($_SERVER["HTTPS"]) ? 'https' : 'http';
|
||||||
|
|
||||||
|
if (!isset($request->id) || !isset($request->name)) {
|
||||||
|
return 'Err!';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $protocol.'://'.$_SERVER['SERVER_NAME'].'/assets/images/'.$request->id.'/'.$request->name;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return 'Permission denied.';
|
||||||
}
|
}
|
||||||
|
|
||||||
return $protocol.'://'.$_SERVER['SERVER_NAME'].'/assets/images/'.$request->id.'/'.$request->name;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function uploadImage(Request $request) { // /api/rpc/image/upload
|
public function uploadImage(Request $request) { // /api/rpc/image/upload
|
||||||
|
@ -325,7 +370,7 @@ class ImageController extends Controller {
|
||||||
else {
|
else {
|
||||||
$valid = $this->objAuth->getPermissions($request->username, $request->password);
|
$valid = $this->objAuth->getPermissions($request->username, $request->password);
|
||||||
|
|
||||||
if ($valid['usr_editprofile'] == 1) {
|
if ($valid['img_add'] == 1) {
|
||||||
if (isset($request->filename)) {
|
if (isset($request->filename)) {
|
||||||
if (!is_dir("assets/images/".$check)) {
|
if (!is_dir("assets/images/".$check)) {
|
||||||
if (!mkdir("assets/images/".$check, 0755, true)) {
|
if (!mkdir("assets/images/".$check, 0755, true)) {
|
||||||
|
@ -372,7 +417,7 @@ class ImageController extends Controller {
|
||||||
else {
|
else {
|
||||||
$valid = $this->objAuth->getPermissions($request->username, $request->password);
|
$valid = $this->objAuth->getPermissions($request->username, $request->password);
|
||||||
|
|
||||||
if ($valid['usr_editother'] == 1) {
|
if ($valid['img_delother'] == 1) {
|
||||||
if (isset($request->name)) {
|
if (isset($request->name)) {
|
||||||
$fname = 'assets/images/'.$request->id.'/'.$request->name;
|
$fname = 'assets/images/'.$request->id.'/'.$request->name;
|
||||||
unlink('storage/'.$fname);
|
unlink('storage/'.$fname);
|
||||||
|
@ -384,11 +429,16 @@ class ImageController extends Controller {
|
||||||
else {
|
else {
|
||||||
if (isset($request->name)) {
|
if (isset($request->name)) {
|
||||||
if ($check == $request->id) {
|
if ($check == $request->id) {
|
||||||
$fname = 'assets/images/'.$check.'/'.$request->name;
|
if ($valid['img_delown'] == 1) {
|
||||||
unlink('storage/'.$fname);
|
$fname = 'assets/images/'.$check.'/'.$request->name;
|
||||||
if ($this->is_dir_empty('storage/assets/images/'.$check)) rmdir('storage/assets/images/'.$check);
|
unlink('storage/'.$fname);
|
||||||
|
if ($this->is_dir_empty('storage/assets/images/'.$check)) rmdir('storage/assets/images/'.$check);
|
||||||
|
|
||||||
return 'Deleted';
|
return 'Deleted';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return 'Permission denied.';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
return 'Permission denied.';
|
return 'Permission denied.';
|
||||||
|
|
新しいイシューから参照