From: <wel...@us...> - 2012-02-10 22:25:56
|
Revision: 8078 http://planeshift.svn.sourceforge.net/planeshift/?rev=8078&view=rev Author: weltall2 Date: 2012-02-10 22:25:50 +0000 (Fri, 10 Feb 2012) Log Message: ----------- fixed PS#5541 - single author books generate error when read by third party Modified Paths: -------------- trunk/src/server/bulkobjects/psitem.cpp Modified: trunk/src/server/bulkobjects/psitem.cpp =================================================================== --- trunk/src/server/bulkobjects/psitem.cpp 2012-02-10 16:09:43 UTC (rev 8077) +++ trunk/src/server/bulkobjects/psitem.cpp 2012-02-10 22:25:50 UTC (rev 8078) @@ -3189,7 +3189,7 @@ //is it a writable book? In our inventory? Are we the author? bool shouldWrite = (GetIsWriteable() && GetOwningCharacter() == client->GetCharacterData() && - ( IsThisTheCreator(client->GetCharacterData()->GetPID()) || psserver->CheckAccess(client, "write all creative")) ); + ( IsThisTheCreator(client->GetCharacterData()->GetPID()) || psserver->CheckAccess(client, "write all creative", false)) ); // CPrintf(CON_DEBUG,"Sent text for book %u %u\n",slotID, containerID); psReadBookTextMessage outgoing(client->GetClientNum(), name, text, shouldWrite, slotID, containerID,GetCreativeBackgroundImg()); @@ -3236,7 +3236,7 @@ // writeable sketch? in inventory? author? gm? bool sketchReadOnly = !(GetIsWriteable() && GetOwningCharacter() == client->GetCharacterData() && - (IsThisTheCreator(client->GetCharacterData()->GetPID()) || psserver->CheckAccess(client, "write all creative")) ); + (IsThisTheCreator(client->GetCharacterData()->GetPID()) || psserver->CheckAccess(client, "write all creative", false)) ); if (sketchReadOnly) xml.Append("<rdonly/>"); @@ -3261,7 +3261,7 @@ { bool readOnly = !(GetIsWriteable() && GetOwningCharacter() == client->GetCharacterData() && - (IsThisTheCreator(client->GetCharacterData()->GetPID()) || psserver->CheckAccess(client, "write all creative"))); + (IsThisTheCreator(client->GetCharacterData()->GetPID()) || psserver->CheckAccess(client, "write all creative", false))); psMusicalSheetMessage msg(client->GetClientNum(), GetUID(), readOnly, false, GetName(), GetMusicalSheet().GetDataSafe()); msg.SendMessage(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |