Respect max subscription limit when adding via AJAX wizard.

        Patch by wyntarvox. 

diffs (14 lines):

diff -r 434d58c389cc -r ac5091814431 htdocs/tools/endpoints/esn_subs.bml
--- a/htdocs/tools/endpoints/esn_subs.bml       Sat May 16 19:31:47 2009 +0000
+++ b/htdocs/tools/endpoints/esn_subs.bml       Sun May 17 02:10:20 2009 +0000
@@ -60,6 +60,10 @@
             $ret{auth_token} = $auth_token;
         }
     } elsif ($action eq 'addsub') {
+
+        return $err->("Reached limit of " . $remote->get_cap('subscriptions') 
. " active subscriptions")
+            unless $remote->can_add_inbox_subscription;
+
         my %subparams = ();
 
         return $err->("Invalid subscription parameters") unless (defined 
$POST{journalid}) && $POST{etypeid}+0;
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to