updated: to the new Ezc API
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@983 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -74,7 +74,7 @@ void user_is_in_group(Info & i)
|
||||
|
||||
for(size_t a=0 ; a<i.params.size() ; ++a)
|
||||
{
|
||||
long gid = system->groups.GetGroupId(i.params[a]);
|
||||
long gid = system->groups.GetGroupId(i.params[a].str);
|
||||
|
||||
if( gid!=-1 && cur->session->puser->IsMemberOf(gid) )
|
||||
{
|
||||
@@ -85,7 +85,7 @@ void user_is_in_group(Info & i)
|
||||
}
|
||||
|
||||
|
||||
// !! moze lepsza nazwa?
|
||||
// !! IMPROVE ME moze lepsza nazwa?
|
||||
void user_is_in_all_groups(Info & i)
|
||||
{
|
||||
if( !cur->session->puser || i.params.empty() )
|
||||
@@ -93,7 +93,7 @@ void user_is_in_all_groups(Info & i)
|
||||
|
||||
for(size_t a=0 ; a<i.params.size() ; ++a)
|
||||
{
|
||||
long gid = system->groups.GetGroupId(i.params[a]);
|
||||
long gid = system->groups.GetGroupId(i.params[a].str);
|
||||
|
||||
if( gid==-1 || !cur->session->puser->IsMemberOf(gid) )
|
||||
return;
|
||||
|
Reference in New Issue
Block a user