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:
parent
0ccd269a87
commit
9601533b19
@ -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(){};
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user