current position:Home>Troubleshooting and optimization of files that cannot be globally searched by ordinary users in easydss video platform customization project

Troubleshooting and optimization of files that cannot be globally searched by ordinary users in easydss video platform customization project

2022-06-24 12:43:15Tsingsee green rhino video

TSINGSEE Qingxi video cloud edge Architecture EasyDSS Before the video platform, the user management and role management functions have been updated , Super administrators are free to create or delete users and roles , You can also search and manage all channel files , Ordinary users can only search the channel files assigned by themselves .

When testing the global search for files by ordinary users , We found that non super administrator users cannot search global files , And the error returned when calling the interface is shown in the following figure :

According to the error returned , We can see , It is an error report caused by the program's failure to correctly judge the user role .

We just need to add a simple judgment here , Through the judgment of user role , When the non super administrator role makes a global query , Query the files in all directories under this role .

Database query statement modification :

Page display after solution :

EasyDSS The video platform accesses the device or platform through rtmp Agreement to achieve , This protocol uses the streaming mechanism , Just support rtmp The protocol device can push the stream to EasyDSS above , Like mobile phone. 、 The computer 、 Unmanned aerial vehicle (uav) 、 Cameras and so on , Online classroom 、 The remote UAV can land in terms of streaming live broadcast and security .

Besides ,EasyDSS It also has rich secondary development interfaces , It can facilitate secondary development , Welcome to test .

copyright notice
author[Tsingsee green rhino video],Please bring the original link to reprint, thank you.
https://en.chowdera.com/2022/175/20210526184508171T.html

Random recommended