You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2019/05/28 08:32:51 UTC

[cloudstack] branch master updated: User allowed to tag project created by him (#3323)

This is an automated email from the ASF dual-hosted git repository.

dahn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/master by this push:
     new de18613  User allowed to tag project created by him (#3323)
de18613 is described below

commit de18613206a908413955120bf598209ae99da9d1
Author: Spaceman1984 <49...@users.noreply.github.com>
AuthorDate: Tue May 28 10:32:39 2019 +0200

    User allowed to tag project created by him (#3323)
---
 server/src/main/java/com/cloud/tags/TaggedResourceManagerImpl.java | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/server/src/main/java/com/cloud/tags/TaggedResourceManagerImpl.java b/server/src/main/java/com/cloud/tags/TaggedResourceManagerImpl.java
index 9803ce7..3fdb47f 100644
--- a/server/src/main/java/com/cloud/tags/TaggedResourceManagerImpl.java
+++ b/server/src/main/java/com/cloud/tags/TaggedResourceManagerImpl.java
@@ -215,6 +215,10 @@ public class TaggedResourceManagerImpl extends ManagerBase implements TaggedReso
             }
         }
 
+        if (resourceType == ResourceObjectType.Project) {
+            accountId = ((ProjectVO)entity).getProjectAccountId();
+        }
+
         if (entity instanceof OwnedBy) {
             accountId = ((OwnedBy)entity).getAccountId();
         }