Skip to content

Commit

Permalink
PR feedback for issue relationships API
Browse files Browse the repository at this point in the history
Fixes #23868
  • Loading branch information
vboctor committed Jan 28, 2018
1 parent ee9e004 commit 2f88f94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/commands/IssueRelationshipAddCommand.php
Expand Up @@ -131,7 +131,7 @@ function validate() {
$t_view_threshold = config_get( 'view_bug_threshold', null, null, $this->targetIssue->project_id );
if( !access_has_bug_level( $t_view_threshold, $t_target_issue_id ) ) {
throw new ClientException(
sprintf( "Issue %d is read-only", $t_target_issue_id ),
sprintf( "Access denied to issue %d", $t_target_issue_id ),
ERROR_RELATIONSHIP_ACCESS_LEVEL_TO_DEST_BUG_TOO_LOW,
array( $t_target_issue_id )
);
Expand Down
2 changes: 1 addition & 1 deletion core/commands/IssueRelationshipDeleteCommand.php
Expand Up @@ -90,7 +90,7 @@ function validate() {
$t_view_threshold = config_get( 'view_bug_threshold', null, null, $t_target_issue->project_id );
if( !access_has_bug_level( $t_view_threshold, $t_target_issue_id ) ) {
throw new ClientException(
sprintf( "Issue %d is read-only", $t_target_issue_id ),
sprintf( "Access denied to issue %d", $t_target_issue_id ),
ERROR_RELATIONSHIP_ACCESS_LEVEL_TO_DEST_BUG_TOO_LOW,
array( $t_target_issue_id )
);
Expand Down

0 comments on commit 2f88f94

Please sign in to comment.