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:
parent
34fa53ca3a
commit
950d7f5f2d
@ -615,6 +615,12 @@ 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, "." );
|
AStringVector Split = StringSplit( a_Permission, "." );
|
||||||
PermissionMap Possibilities = m_ResolvedPermissions;
|
PermissionMap Possibilities = m_ResolvedPermissions;
|
||||||
// Now search the namespaces
|
// Now search the namespaces
|
||||||
|
Loading…
Reference in New Issue
Block a user