Defect #35308

"Add news" button on global news index is displayed for users without permissions

Added by Go MAEDA 4 months ago. Updated 4 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:News
Target version:4.2.2
Resolution:Fixed Affected version:4.2.0

Description

"Add news" button on the global news index is always displayed even if the current user does not have the necessary permission to add a news article. The issue is due to #33167.

The issue was reported by Alexander Meindl in #2414#note-10.

fix_add_news_button.patch Magnifier - patch by Alexander Meindl (790 Bytes) Go MAEDA, 2021-05-25 11:31

add_test.patch Magnifier (1.66 KB) Mizuki ISHIKAWA, 2021-05-27 02:39


Related issues

Related to Redmine - Feature #33167: "Add news" button in cross-project News tab Closed

Associated revisions

Revision 21014
Added by Go MAEDA 4 months ago

"Add news" button on global news index is displayed for users without permission (#35308).

Patch by Alexander Meindl and Mizuki ISHIKAWA.

Revision 21020
Added by Go MAEDA 4 months ago

Merged r21014 from trunk to 4.2-stable (#35308).

History

#1 Updated by Go MAEDA 4 months ago

  • Related to Feature #33167: "Add news" button in cross-project News tab added

#2 Updated by Go MAEDA 4 months ago

  • Target version set to Candidate for next minor release

#3 Updated by Mizuki ISHIKAWA 4 months ago

I added a test to fix_add_news_button.patch.

#4 Updated by Go MAEDA 4 months ago

  • Target version changed from Candidate for next minor release to 4.2.2

Setting the target version to 4.2.2.

#5 Updated by Go MAEDA 4 months ago

  • Status changed from New to Resolved
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the fix. Thank you all for fixing the issue.

#6 Updated by Go MAEDA 4 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF