Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Commit

Permalink
Synchronise with official 0.9.6.13
Browse files Browse the repository at this point in the history
  • Loading branch information
rajkosto committed Jan 12, 2013
1 parent 198b3f4 commit 75ad3f5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
Binary file modified Hive/Source/HiveExt/Resource.rc
Binary file not shown.
19 changes: 13 additions & 6 deletions Hive/Source/HiveLib/HiveExtApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1044,15 +1044,22 @@ Sqf::Value HiveExtApp::changeTableAccess( Sqf::Parameters params )

//then apply the changes
Sqf::Parameters failedAdd, failedRem;
for (auto it=allowTables.begin(); it!=allowTables.end(); ++it)
try
{
if (!_customData->allowTable(*it))
failedAdd.push_back(*it);
for (auto it=allowTables.begin(); it!=allowTables.end(); ++it)
{
if (!_customData->allowTable(*it))
failedAdd.push_back(*it);
}
for (auto it=removeTables.begin(); it!=removeTables.end(); ++it)
{
if (!_customData->removeAllowedTable(*it))
failedRem.push_back(*it);
}
}
for (auto it=removeTables.begin(); it!=removeTables.end(); ++it)
catch (const CustomDataSource::DataException& e)
{
if (!_customData->removeAllowedTable(*it))
failedRem.push_back(*it);
return ReturnBooleanStatus(false,e.toString());
}

Sqf::Parameters retVal;
Expand Down

0 comments on commit 75ad3f5

Please sign in to comment.