Skip to content

Commit 2d42a42

Browse files
authored
Set hasObjectPermissionTo defaultPermission to false (#4388)
1 parent ffcde8e commit 2d42a42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Server/mods/deathmatch/logic/luadefs/CLuaACLDefs.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ int CLuaACLDefs::aclGroupRemoveObject(lua_State* luaVM)
888888

889889
int CLuaACLDefs::hasObjectPermissionTo(lua_State* luaVM)
890890
{
891-
// bool hasObjectPermissionTo ( string / element theObject, string theAction [, bool defaultPermission = true ] )
891+
// bool hasObjectPermissionTo ( string / element theObject, string theAction [, bool defaultPermission = false ] )
892892
CResource* pResource = NULL;
893893
CElement* pElement = NULL;
894894
SString strObject;
@@ -905,7 +905,7 @@ int CLuaACLDefs::hasObjectPermissionTo(lua_State* luaVM)
905905
argStream.ReadString(strObject);
906906

907907
argStream.ReadString(strRightName);
908-
argStream.ReadBool(bDefault, true);
908+
argStream.ReadBool(bDefault, false);
909909

910910
if (!argStream.HasErrors())
911911
{

0 commit comments

Comments
 (0)