From 3bc9888fcf5efe373a14be12382e1b8a882e348e Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 14 Jul 2009 19:09:45 +0200 Subject: Gruppenmitgliedschaften korrekt ausgeben --- src/Client/UserCommands.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Client') 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 > groups = commandParser->application->getUserManager()->getUserGroupList(uid); + boost::shared_ptr > 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 > users = commandParser->application->getUserManager()->getGroupUserList(gid); + boost::shared_ptr > users = commandParser->application->getUserManager()->getGroupUserList(groupInfo->getGid()); if(!users->empty()) { std::cout << " The group has " << users->size() << " member" << (users->size()==1 ? "" : "s") << ":" << std::endl; -- cgit v1.2.3