[ 
https://issues.apache.org/jira/browse/VCL-759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14185741#comment-14185741
 ] 

ASF subversion and git services commented on VCL-759:
-----------------------------------------------------

Commit 1634677 from [~jfthomps] in branch 'vcl/trunk'
[ https://svn.apache.org/r1634677 ]

VCL-759 - check user group access to image when creating block allocations

blockallocations.php:
-modified blockAllocationForm: added onChange handlers to form for selecting 
environment and user group that call clearCont2; added hidden form value with 
id of submitcont2 - we end up storing a 2nd continuation here that has an 
override flag set to allow ignoring a warning that the submitted user group 
does not have access to the submitted environment
-modified processBlockAllocationInput: check for user group having access to 
image; do not do check if $override is set; if error and error was from user 
group not having access to image, send back a 2nd continuation that has 
override flag set

utils.php: modified getUserResources: added optional argument to end of 
argument list - $groupid; allows a group id to be passed in (along with $userid 
= 0) to get resources a user group has access to

blockallocations.js:
-modified blockFormSubmitWeekly, blockFormSubmitMonthly, and 
blockFormSubmitList: use continuation stored in submitcont2 if it has a non 
empty value
-added clearCont2

> check user group access to image when creating block allocations
> ----------------------------------------------------------------
>
>                 Key: VCL-759
>                 URL: https://issues.apache.org/jira/browse/VCL-759
>             Project: VCL
>          Issue Type: Improvement
>          Components: web gui (frontend)
>            Reporter: Josh Thompson
>             Fix For: 2.4
>
>
> When creating a block allocation, it would be useful to have a check to 
> ensure that the selected user group actually has access to the selected image 
> and warn the user if it does not.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to