summaryrefslogtreecommitdiffstats
path: root/src/Server/UserManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Server/UserManager.cpp')
-rw-r--r--src/Server/UserManager.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Server/UserManager.cpp b/src/Server/UserManager.cpp
index 3b5887a..e32cb57 100644
--- a/src/Server/UserManager.cpp
+++ b/src/Server/UserManager.cpp
@@ -54,6 +54,16 @@ boost::shared_ptr<Common::UserInfo> UserManager::getUserInfo(unsigned long uid)
return boost::shared_ptr<Common::UserInfo>();
}
+boost::shared_ptr<std::map<unsigned long, Common::GroupInfo> > UserManager::getGroupList() {
+ for(std::set<boost::shared_ptr<UserBackend> >::iterator backend = backends.begin(); backend != backends.end(); ++backend) {
+ boost::shared_ptr<std::map<unsigned long, Common::GroupInfo> > ret = (*backend)->getGroupList();
+ if(ret)
+ return ret;
+ }
+
+ return boost::shared_ptr<std::map<unsigned long, Common::GroupInfo> >();
+}
+
bool UserManager::setPassword(unsigned long uid, const std::string &password) {
for(std::set<boost::shared_ptr<UserBackend> >::iterator backend = backends.begin(); backend != backends.end(); ++backend) {
if((*backend)->setPassword(uid, password))