| @@ 209-220 (lines=12) @@ | ||
| 206 | ||
| 207 | ||
| 208 | $single_tag = false; |
|
| 209 | foreach ($tags as $position => $tag) { |
|
| 210 | ||
| 211 | /** |
|
| 212 | * Let's check if the user can access the current tag |
|
| 213 | * if not then this is the only tag he will see |
|
| 214 | **/ |
|
| 215 | ||
| 216 | if ( $current_tag == $tag->id && \Auth::user()->role_id < $tag->role_limit ) { |
|
| 217 | $single_tag = true; |
|
| 218 | break; |
|
| 219 | } |
|
| 220 | } |
|
| 221 | ||
| 222 | ||
| 223 | /** |
|
| @@ 277-288 (lines=12) @@ | ||
| 274 | $current_tag = $this->getIssueTagId('type'); |
|
| 275 | $single_tag = false; |
|
| 276 | ||
| 277 | foreach ($tags as $position => $tag) { |
|
| 278 | ||
| 279 | /** |
|
| 280 | * Let's check if the user can access the current tag |
|
| 281 | * if not then this is the only tag he will see |
|
| 282 | **/ |
|
| 283 | ||
| 284 | if ( $current_tag == $tag->id && \Auth::user()->role_id < $tag->role_limit ) { |
|
| 285 | $single_tag = true; |
|
| 286 | break; |
|
| 287 | } |
|
| 288 | } |
|
| 289 | ||
| 290 | if ($single_tag) { |
|
| 291 | ||
| @@ 341-352 (lines=12) @@ | ||
| 338 | $current_tag = $this->getIssueTagId('resolution'); |
|
| 339 | $single_tag = false; |
|
| 340 | ||
| 341 | foreach ($tags as $position => $tag) { |
|
| 342 | ||
| 343 | /** |
|
| 344 | * Let's check if the user can access the current tag |
|
| 345 | * if not then this is the only tag he will see |
|
| 346 | **/ |
|
| 347 | ||
| 348 | if ( $current_tag == $tag->id && \Auth::user()->role_id < $tag->role_limit ) { |
|
| 349 | $single_tag = true; |
|
| 350 | break; |
|
| 351 | } |
|
| 352 | } |
|
| 353 | ||
| 354 | ||
| 355 | /** |
|