user_syndicate page, use tag and add action to set it
[raven.git] / apps / gacksadmin / action.php
index 05c9708..1a73caa 100644 (file)
@@ -172,6 +172,19 @@ try {
             break;
         }
 
+        case 'set-syndicate': {
+            $account_name = $_POST['account_name'];
+            $enable_syndicate = $_POST['enable_syndicate'];
+            set_slice_tag($api, $account_name, "enable_syndicate", $enable_syndicate);
+            if ($enable_syndicate) {
+                drupal_set_message('Syndicate shared filesystem enabled. It may take a few minutes for the volume to show up in your slice');
+            } else {
+                drupal_set_message('Syndicate shared filesystem disabled.');
+            }
+            plc_redirect(l_gacks_syndicate());
+            break;
+        }
+
         case 'set-account': {
             $account_name = $_POST['account_name'];
             $url = $_POST['url'];