Home > Backend Development > PHP Tutorial > javascript - How to control user permissions in Baidu Editor's 'Online Attachments'?

javascript - How to control user permissions in Baidu Editor's 'Online Attachments'?

WBOY
Release: 2016-08-04 09:21:54
Original
912 people have browsed it

When using Baidu Editor, I found that when adding attachments, there is an "online attachment" where you can see all attachments uploaded before.

But I only want users to see the attachments they have uploaded, not the attachments uploaded by everyone. How should I achieve this?

In addition, it seems that the "Online Management" of "Multiple Picture Upload" also has this situation.

Reply content:

When using Baidu Editor, I found that when adding attachments, there is an "online attachment" where you can see all attachments uploaded before.

But I only want users to see the attachments they have uploaded, not the attachments uploaded by everyone. How should I achieve this?

In addition, it seems that the "Online Management" of "Multiple Picture Upload" also has this situation.

http://fex.baidu.com/ueditor/#server-php
http://fex.baidu.com/ueditor/#dev-request_specification

Judge the session in controller.php
Note that there is no session when uploading flash

Thanks for the answer upstairs.
I found the answer, there are these lines of code in controller.php:

<code>  /* 列出图片 */
    case 'listimage':
        $result = include("action_list.php");
        break;
    /* 列出文件 */
    case 'listfile':
        $result = include("action_list.php");
        break;
        </code>
Copy after login

Just comment them out, or comment out the code of action_list.php.

I chose to make as few changes as possible and added exit();

at the front of action_list.php
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template