summaryrefslogtreecommitdiffstats
path: root/src/Server/UserManager.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-05-22 00:23:59 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-05-22 00:23:59 +0200
commit264cd7947d7291f78065f12824523ba6178a9936 (patch)
tree7261b9a33519cd783f614b147c44f484a1217618 /src/Server/UserManager.cpp
parente0e254548b6200d16bc3f4be3bd255b041a76532 (diff)
downloadmad-264cd7947d7291f78065f12824523ba6178a9936.tar
mad-264cd7947d7291f78065f12824523ba6178a9936.zip
GroupListRequest hinzugef?gt
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))