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
|
|
@ -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