mirror of
https://github.com/OpenNebula/one.git
synced 2025-02-21 13:57:56 +03:00
feature #1013: Fix create and delete hooks for users and groups
This commit is contained in:
parent
24a83ca0af
commit
953b1c8967
@ -169,6 +169,10 @@ int GroupPool::drop(PoolObjectSQL * objsql, string& error_msg)
|
||||
error_msg = "SQL DB error";
|
||||
rc = -1;
|
||||
}
|
||||
else
|
||||
{
|
||||
do_hooks(objsql, Hook::REMOVE);
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
@ -80,6 +80,8 @@ UserPool::UserPool(SqlDB * db,
|
||||
|
||||
_session_expiration_time = __session_expiration_time;
|
||||
|
||||
register_hooks(hook_mads, remotes_location);
|
||||
|
||||
User * oneadmin_user = get(0, true);
|
||||
|
||||
if (oneadmin_user != 0)
|
||||
@ -196,8 +198,6 @@ UserPool::UserPool(SqlDB * db,
|
||||
goto error_serveradmin;
|
||||
}
|
||||
|
||||
register_hooks(hook_mads, remotes_location);
|
||||
|
||||
return;
|
||||
|
||||
error_no_file:
|
||||
|
Loading…
x
Reference in New Issue
Block a user