プロジェクト

全般

プロフィール

Vote #81822

完了

User without permissions to view required project custom fields cannot create new projects

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Projects_11
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
11
version_id:
174
issue_org_id:
36593
author_id:
577349
assigned_to_id:
107353
comments:
6
status_id:
5
tracker_id:
1
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Hello
On a project when a custom field is marked as mandatory but not visible for certain roles, users of these roles can no longer create a project.
https://github.com/redmine/redmine/pull/135


journals

+1
Thanks for reporting the problem and for sharing the code.

I was able to reproduce the problem.
Here are the steps to reproduce the problem.

* @bundle exec rake db:fixtures:load@
* Log in as admin user
* Custom fields » Projects » New custom field
** ✓ required
** ✓ to these roles only: Manager
* Log in as jsmith user
* New project => save
* The error message "Test cannot be blank" is displayed.

In https://github.com/redmine/redmine/pull/135 , a pull request is proposed to skip the validation of required custom fields when a user who does not have permission to see them tries to create a project.
The same mechanism is already implemented in Issue, so I think it's good to add this pull request code to Redmine.
Issue: https://github.com/redmine/redmine/blob/eb868ad9324e65942e8ad0ccd0a035d801a93864/app/models/issue.rb#L833
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Fix committed, thanks!
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリProjects_11 にセット
  • 対象バージョン4.1.7_174 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0