Table of Contents | ||
---|---|---|
|
...
Acq. Unit | protectCreate | protectRead | protectUpdate | protectDelete |
---|---|---|---|---|
AllowFundViewAcqUnitFundAllowFundViewAcqUnit | false | false | true | true |
RestrictFundViewAcqUnit | true | true | false | true |
Effective | false | false | false | true |
...
- WITHOUT ANY acq units (FundWithoutAcqUnits)
- Have at least one of acq unit(s) as the user (FundRistrictView1, FundRistrictView2)
- Haveacq unit(s) which DON'T protect read (FundAllowView)
...
- Given UserRestrictFundView
- And "Fund View" opened
- When user select RestrictFundViewAcqUnit in the filter "Acquisition units"
- Then Only Fund(s) with acquisition unit RestrictFundViewAcqUnit are displayed (FundRistrictView1, FundRistrictView2)
Add/Update PO line
Show funds in filter list
...
- WITHOUT ANY acq units (FundWithoutAcqUnits)
- Have at least one of acq unit(s) as the user (FundRistrictView1, FundRistrictView2)
- Haveacq unit(s) which DON'T protect read (FundAllowView)
2. Scenario
- Given user belongs to AllowFundViewAcqUnit FundAllowFundViewAcqUnit
- And Open "Add PO Line" form
- When Selecting Funds from the filter list
- Then Fund(s) are displayed :
- WITHOUT ANY acq units (FundWithoutAcqUnits)
- Have at least one of acq unit(s) as the user (FundRistrictView2)
- Haveacq unit(s) which DON'T protect read (FundAllowView)
...
- WITHOUT ANY acq units (FundWithoutAcqUnits)
- Have at least one of acq unit(s) as the user (FundRistrictView1, FundRistrictView2)
- Haveacq unit(s) which DON'T protect read (FundAllowView)
...
4. Scenario
- Given user belongs to AllowFundViewAcqUnit FundAllowFundViewAcqUnit
- And fundDistributions contain FundAllowView, FundWithoutAcqUnits
- When Save PO line
- Then PO line save successfully
5. Scenario
- Given user belongs to AllowFundViewAcqUnit FundAllowFundViewAcqUnit
- And fundDistributions contain FundRistrictView2
- When Save PO line
- Then PO line save successfully
6. Scenario
- Given user belongs to AllowFundViewAcqUnit FundAllowFundViewAcqUnit
- And fundDistributions contain FundRistrictView1
- When Save PO line
- Then Error must be return "Not allowed to add funds : FundRistrictView1"
7. Scenario
- Given user belongs to AllowFundViewAcqUnit FundAllowFundViewAcqUnit
- And fundDistributions contain FundAllowView, FundRistrictView1
- When Save PO line
- Then Error must be return "Not allowed to add funds : FundRistrictView1"
...