openvidu-server: recordings path endpoint security fix

pull/375/head
pabloFuente 2019-07-30 12:07:56 +02:00
parent 91c06a0b7b
commit c242bea08a
1 changed files with 2 additions and 2 deletions

View File

@ -63,9 +63,9 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
// Security for recorded videos
if (openviduConf.getOpenViduRecordingPublicAccess()) {
conf = conf.antMatchers("/recordings/*").permitAll();
conf = conf.antMatchers("/recordings/**").permitAll();
} else {
conf = conf.antMatchers("/recordings/*").authenticated();
conf = conf.antMatchers("/recordings/**").authenticated();
}
conf.and().httpBasic();