1
0

Empty permission is always granted

git-svn-id: http://mc-server.googlecode.com/svn/trunk@1490 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
madmaxoft@gmail.com 2013-05-19 15:06:28 +00:00
parent 34fa53ca3a
commit 950d7f5f2d

View File

@ -613,8 +613,14 @@ bool cPlayer::CanUseCommand( const AString & a_Command )
bool cPlayer::HasPermission( const AString & a_Permission )
bool cPlayer::HasPermission(const AString & a_Permission)
{
if (a_Permission.empty())
{
// Empty permission request is always granted
return true;
}
AStringVector Split = StringSplit( a_Permission, "." );
PermissionMap Possibilities = m_ResolvedPermissions;
// Now search the namespaces