Skip to content
Snippets Groups Projects
Commit b5b1fd33 authored by Steven Murray's avatar Steven Murray
Browse files

Add the bootstrap method Scheduler::createAdminUserWithoutAuthorizingRequester()

parent 250d84b2
Branches
Tags
No related merge requests found
......@@ -118,6 +118,16 @@ void cta::Scheduler::createAdminUser(
m_db.createAdminUser(requester, user, comment);
}
//------------------------------------------------------------------------------
// createAdminUserWithoutAuthorizingRequester
//------------------------------------------------------------------------------
void cta::Scheduler::createAdminUserWithoutAuthorizingRequester(
const SecurityIdentity &requester,
const UserIdentity &user,
const std::string &comment) {
m_db.createAdminUser(requester, user, comment);
}
//------------------------------------------------------------------------------
// deleteAdminUser
//------------------------------------------------------------------------------
......
......@@ -147,6 +147,24 @@ public:
const UserIdentity &user,
const std::string &comment);
/**
* Creates the specified administrator without performing any authorisation
* checks.
*
* This method provides a way to bootstrap the list of administrators.
* This method does not perform any authorizations checks therefore please
* take any necessary precautions before calling this method.
*
* @param requester The identity of the user requesting the creation of the
* administrator.
* @param user The identity of the administrator.
* @param comment The comment describing the sministrator.
*/
void createAdminUserWithoutAuthorizingRequester(
const SecurityIdentity &requester,
const UserIdentity &user,
const std::string &comment);
/**
* Deletes the specified administrator.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment