Merge pull request #658 from manuiiit/pull-11

Implemented condition that only admin or owner of the template can change its 
permissions ..... using updateTemplatePermissions API

Consider this scenario :
In a domain, there are three User Accounts UA1, UA2,UA3
A private template is registered by UA1
Through the updateTemplatePermissions API, UA1 gives permission to both UA2 and 
UA3
Now, UA2, having been shared the template, can remove the permission of UA3(or 
add permissions to another account).
EXPECTED BEHAVIOR :
UA2 should not be able to to add/remove permissions of other accounts.

* pr/658:
  Implemented condition that only admin or owner of the template can change its 
permissions using updateTemplatePermissions API

Signed-off-by: Remi Bergsma <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/f65dec4b
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/f65dec4b
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/f65dec4b

Branch: refs/heads/master
Commit: f65dec4b0f346ec13b44d2b3f1a0a2c294012e39
Parents: b1fa378 f7e8d44
Author: Remi Bergsma <[email protected]>
Authored: Tue Aug 11 11:38:33 2015 +0200
Committer: Remi Bergsma <[email protected]>
Committed: Tue Aug 11 11:38:33 2015 +0200

----------------------------------------------------------------------
 server/src/com/cloud/template/TemplateManagerImpl.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


Reply via email to