1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

Feature #862: Add default permission to Group so users can USE their own group

This commit is contained in:
Carlos Martín 2012-01-03 10:08:51 -08:00
parent 0ccd269a87
commit 9601533b19
2 changed files with 6 additions and 2 deletions

View File

@ -79,7 +79,11 @@ private:
Group(int id, const string& name):
PoolObjectSQL(id,GROUP,name,-1,-1,"","",table),
ObjectCollection("USERS"){};
ObjectCollection("USERS")
{
// Allow users in this group to see it
group_u = 1;
};
virtual ~Group(){};

View File

@ -234,7 +234,7 @@ int Host::from_xml(const string& xml)
// Set the owner and group to oneadmin
set_user(0, "");
set_group(0, "");
set_group(GroupPool::ONEADMIN_ID, GroupPool::ONEADMIN_NAME);
// Get associated classes
ObjectXML::get_nodes("/HOST/HOST_SHARE", content);