summaryrefslogtreecommitdiffstats
path: root/src/Client
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-07-14 19:09:45 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-07-14 19:09:45 +0200
commit3bc9888fcf5efe373a14be12382e1b8a882e348e (patch)
tree77eb1ac1c67aa295112fe5f9bcb6abdf10d92fa8 /src/Client
parent543a6d3e58c6c76a940c536247f78db7dafce57a (diff)
downloadmad-3bc9888fcf5efe373a14be12382e1b8a882e348e.tar
mad-3bc9888fcf5efe373a14be12382e1b8a882e348e.zip
Gruppenmitgliedschaften korrekt ausgeben
Diffstat (limited to 'src/Client')
-rw-r--r--src/Client/UserCommands.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Client/UserCommands.cpp b/src/Client/UserCommands.cpp
index cd2ff5a..ab6449e 100644
--- a/src/Client/UserCommands.cpp
+++ b/src/Client/UserCommands.cpp
@@ -123,7 +123,7 @@ void UserCommands::userInfoCommand(CommandParser *commandParser, const std::vect
std::cout << " Group: " << getGroupName(commandParser, userInfo->getGid(), true) << std::endl;
std::cout << " Full name: " << userInfo->getFullName() << std::endl << std::endl;
- boost::shared_ptr<const std::set<unsigned long> > groups = commandParser->application->getUserManager()->getUserGroupList(uid);
+ boost::shared_ptr<const std::set<unsigned long> > groups = commandParser->application->getUserManager()->getUserGroupList(userInfo->getUid());
if(!groups->empty()) {
std::cout << " The user is member of " << groups->size() << " group" << (groups->size()==1 ? "" : "s") << ":" << std::endl;
@@ -186,7 +186,7 @@ void UserCommands::groupInfoCommand(CommandParser *commandParser, const std::vec
std::cout << " Group name: " << groupInfo->getName() << " (" << groupInfo->getGid() << ")" << std::endl << std::endl;
- boost::shared_ptr<const std::set<unsigned long> > users = commandParser->application->getUserManager()->getGroupUserList(gid);
+ boost::shared_ptr<const std::set<unsigned long> > users = commandParser->application->getUserManager()->getGroupUserList(groupInfo->getGid());
if(!users->empty()) {
std::cout << " The group has " << users->size() << " member" << (users->size()==1 ? "" : "s") << ":" << std::endl;