Add fine-grained export controls. You can now specify whether you want specific
assets to be exportable. If any of an asset's parents aren't exportable, that asset also won't be exportable.
This commit is contained in:
parent
ba44d57e9f
commit
7accc3c57f
6 changed files with 53 additions and 4 deletions
|
|
@ -14,6 +14,7 @@
|
|||
- Added ability for upgrade scripts to contain packages to deploy
|
||||
- Fixed chdir problem in Storage -- more remain though
|
||||
- Added a new plugin handler system that is both faster and more secure.
|
||||
- Added switch for assets to determine whether they are exportable.
|
||||
|
||||
7.4.20
|
||||
- fix: Assets with no committed versions may be left as orphans when parent is purged
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@ addGroupToEditPost($session);
|
|||
installGalleryAsset($session);
|
||||
installGalleryAlbumAsset($session);
|
||||
installPhotoAsset($session);
|
||||
addIsExportable($session);
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
|
|
@ -264,6 +265,15 @@ ENDSQL
|
|||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Add the isExportable property for all assets
|
||||
sub addIsExportable {
|
||||
my $session = shift;
|
||||
print "Adding isExportable flag for all assets (fine-grained export control)..." unless $quiet;
|
||||
$session->db->write('alter table assetData add column isExportable int(11) not null default 0');
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
# --------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue