summaryrefslogtreecommitdiff
path: root/actions/userauthorization.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/userauthorization.php')
-rw-r--r--actions/userauthorization.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/actions/userauthorization.php b/actions/userauthorization.php
index 11e2d7135..96df8d146 100644
--- a/actions/userauthorization.php
+++ b/actions/userauthorization.php
@@ -449,6 +449,10 @@ class UserauthorizationAction extends Action {
if (!common_valid_http_url($license)) {
throw new OAuthException("Invalid license URL '$license'.");
}
+ $site_license = common_config('license', 'url');
+ if (!common_compatible_license($license, $site_license)) {
+ throw new OAuthException("Listenee stream license '$license' not compatible with site license '$site_license'.");
+ }
# optional stuff
$fullname = $req->get_parameter('omb_listenee_fullname');
if ($fullname && strlen($fullname) > 255) {