diff --git a/gst/rtsp-server/rtsp-auth.c b/gst/rtsp-server/rtsp-auth.c index f7386a7941..9de8c5cf5c 100644 --- a/gst/rtsp-server/rtsp-auth.c +++ b/gst/rtsp-server/rtsp-auth.c @@ -406,7 +406,7 @@ check_factory (GstRTSPAuth * auth, GstRTSPClientState * state, GST_RTSP_MEDIA_FACTORY_PERM_ACCESS)) goto no_access; } else if (g_str_equal (check, "auth.check.media.factory.construct")) { - if (gst_rtsp_permissions_is_allowed (perms, role, + if (!gst_rtsp_permissions_is_allowed (perms, role, GST_RTSP_MEDIA_FACTORY_PERM_CONSTRUCT)) goto no_construct; }