add permission controls to "storage" objects such as attachments or other stored files

This commit is contained in:
friendica
2012-12-22 03:33:12 -08:00
parent 8d71fe91f6
commit f09b9f1e44
7 changed files with 27 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1007 );
define( 'UPDATE_VERSION' , 1008 );
/**
*
@@ -142,4 +142,13 @@ function update_r1006() {
if($r && $r2)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}
}
function update_r1007() {
$r = q("ALTER TABLE `channel` ADD `channel_r_storage` INT UNSIGNED NOT NULL DEFAULT '128', ADD `channel_w_storage` INT UNSIGNED NOT NULL DEFAULT '128', add index ( channel_r_storage ), add index ( channel_w_storage )");
if($r && $r2)
return UPDATE_SUCCESS;
return UPDATE_FAILED;
}