Skip to content

Commit

Permalink
Fix tag attach/detach for non-admin users
Browse files Browse the repository at this point in the history
Take 2, thanks to atrol for keeping his eyes open.
  • Loading branch information
rombert committed Mar 7, 2012
1 parent 633a75a commit 294aae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/soap/mc_tag_api.php
Expand Up @@ -149,13 +149,13 @@ function mci_tag_set_for_issue ( $p_issue_id, $p_tags, $p_user_id ) {

foreach ( $t_tag_ids_to_detach as $t_tag_id ) {
if ( access_has_bug_level ( config_get('tag_detach_threshold'), $p_issue_id, $p_user_id ) ) {
tag_bug_detach( $t_tag_id, $p_issue_id, $p_user_id);
tag_bug_detach( $t_tag_id, $p_issue_id);
}
}

foreach ( $t_tag_ids_to_attach as $t_tag_id ) {
if ( access_has_bug_level ( config_get('tag_attach_threshold'), $p_issue_id, $p_user_id ) ) {
tag_bug_attach( $t_tag_id, $p_issue_id, $p_user_id);
tag_bug_attach( $t_tag_id, $p_issue_id);
}
}
}

0 comments on commit 294aae7

Please sign in to comment.