some ezc functions from templates/item.cpp moved to Item and ItemContent
methods HasAccess() HasReadAccess() and similar moved from System to Item and ItemContent
This commit is contained in:
1 parent
ebd791a256
commit
ec94dff7d7
32 files changed
+1255
-544
No files matched your search
@@ -125,11 +125,11 @@ void User::clear_passwords()
|
||||
|
||||
|
||||
|
||||
bool User::IsMemberOf(long group)
|
||||
bool User::IsMemberOf(long group) const
|
||||
{
|
||||
std::vector<long>::iterator i;
|
||||
std::vector<long>::const_iterator i;
|
||||
|
||||
for(i=groups.begin() ; i!=groups.end() ; ++i)
|
||||
for(i=groups.cbegin() ; i!=groups.cend() ; ++i)
|
||||
if( *i == group )
|
||||
return true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user