Skip to content

Commit

Permalink
added check for TokenFilterManager
Browse files Browse the repository at this point in the history
  • Loading branch information
cemklc committed May 2, 2021
1 parent 809fbf5 commit fc84805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/antmedia/filter/TokenFilterManager.java
Expand Up @@ -79,7 +79,7 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
&& (tokenGenerator == null || clusterToken == null || !clusterToken.equals(tokenGenerator.getGenetaredToken())))
{

if(appSettings.isTimeTokenSubscriberOnly()) {
if(appSettings.isTimeTokenSubscriberOnly() || appSettings.isEnableTimeTokenForPlay() || appSettings.isEnableTimeTokenForPublish()) {
ITokenService tokenServiceTmp = getTokenService();

if(!tokenServiceTmp.checkTimeBasedSubscriber(subscriberId, streamId, sessionId, subscriberCodeText, false)) {
Expand Down

0 comments on commit fc84805

Please sign in to comment.