Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15378677
D13388.id32408.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
942 B
Referenced Files
None
Subscribers
None
D13388.id32408.diff
View Options
diff --git a/src/applications/maniphest/controller/ManiphestBatchEditController.php b/src/applications/maniphest/controller/ManiphestBatchEditController.php
--- a/src/applications/maniphest/controller/ManiphestBatchEditController.php
+++ b/src/applications/maniphest/controller/ManiphestBatchEditController.php
@@ -25,6 +25,12 @@
$task_ids = $request->getStrList('batch');
}
+ if (!$task_ids) {
+ throw new Exception(
+ pht(
+ 'No tasks are selected.'));
+ }
+
$tasks = id(new ManiphestTaskQuery())
->setViewer($viewer)
->withIDs($task_ids)
@@ -37,6 +43,12 @@
->needProjectPHIDs(true)
->execute();
+ if (!$tasks) {
+ throw new Exception(
+ pht(
+ "You don't have permission to edit any of the selected tasks."));
+ }
+
if ($project) {
$cancel_uri = '/project/board/'.$project->getID().'/';
$redirect_uri = $cancel_uri;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 14, 4:09 PM (2 w, 4 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7385773
Default Alt Text
D13388.id32408.diff (942 B)
Attached To
Mode
D13388: Add hard stops on empty batch edit sets
Attached
Detach File
Event Timeline
Log In to Comment