Project

General

Profile

Actions

Defect #37685

closed

Read-only field permission for the project field is ignored if the current project has subprojects

Defect #37685: Read-only field permission for the project field is ignored if the current project has subprojects

Added by salman mp about 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Issues workflow
Target version:
Resolution:
Fixed
Affected version:

Description

When project_id marked as readonly in workflow/permissions for a role say role1, if a user with role1 try to create an issue in a leaf project, everything is ok. But if that user try to create new issue in a project that has some subprojects, that projects was shown in issue creating form.


Files

Updated by Mischa The Evil about 4 years ago Actions #1

Can you add some test coverage for this change? For it, you can check out these relevant references:

Thanks in advance.

Updated by salman mp about 4 years ago Actions #2

I have no experience in writing tests, but I hope these two tests can show that cases.

Updated by salman mp about 4 years ago Actions #3

Updated by Go MAEDA about 4 years ago Actions #4

  • Category set to Issues workflow
  • Status changed from New to Confirmed

Updated by Go MAEDA about 4 years ago Actions #5

  • Target version set to 4.2.8

Setting the target version to 4.2.8.

Updated by Go MAEDA about 4 years ago Actions #6

  • Target version changed from 4.2.8 to 4.2.9

Updated by Go MAEDA about 4 years ago Actions #7

  • Subject changed from Show project field in Issue create form when project_id is not permitted field to Read-only field permission for the project field is ignored if the current project has subprojects
  • Status changed from Confirmed to Resolved
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the fix. Thank you for your contribution.

Updated by Go MAEDA about 4 years ago Actions #8

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom