Topic Closed
creisi
50 Posts
creisi productions
First, thank you very much for the new version 5.0. It's really well done, I like it very much :-) But there's one problem I've found: If a user hasn't all rights, it doesn't seem possible to insert images or other files like pdf. I get the error message, that I don't have enough rights for this action. (On all installations that I've update from 4.6.1 to 5.0.) Is this intended or a bug?
5 years ago#9097

Josh S.
2K Posts
294K Downloads
16 Themes
18 Plugins

Hmm, not sure why that's happening. What is the actual error message you're seeing?

You could also take a look at the permissions that are currently set for your user. Go to "User Permissions" under the "Settings" heading in the admin area.

5 years ago#9102

creisi
50 Posts
creisi productions

Inserting image with "Browse Server"

Error message:

No further error message even with gpdebug set to true.

Permissions in this case:

It doesn't really matter, which permissions are set as long as not all permissions are set. Only seems to work, if all permissions are set. Tried this with different installations and php-versions (5.4, 5.6, 7.0) and different Browsers (Firefox, Chrome).

Edited: 5 years ago#9106

Josh S.
2K Posts
294K Downloads
16 Themes
18 Plugins

Looks like a bug with Typesetter. It affects any user without "All" permissions. Here are the changes that fix the problem

 

5 years ago#9109

creisi
50 Posts
creisi productions
Replaced the two files. No more error message now. But when I try to insert an image, it isn't inserted. Instead if I double click an image to insert, it opens in a popup window.
5 years ago#9119

Josh S.
2K Posts
294K Downloads
16 Themes
18 Plugins

Instead if I double click an image to insert, it opens in a popup window.

Not sure why that's happening. Does it work if you right-click on the image and click "Select Files"?

5 years ago#9123

creisi
50 Posts
creisi productions

Sorry, the error message is still here, not like I wrote earlier. Don't know, how I can have overlooked it. That means, nothing has changed with the new files Users.php and Tools.php, still the same behavior like I wrote in my first and second post...

There isn't an option "Select Files" when I right-click on an image?

Edited: 5 years ago#9124

Josh S.
2K Posts
294K Downloads
16 Themes
18 Plugins

the error message is still here

Sorry, I see the problem in the code. I was double checking my work and forgot to uncomment a line #355 in /include/admin/Tools.php.

Looking into why the "Select Files" option wouldn't display now.

5 years ago#9125

Josh S.
2K Posts
294K Downloads
16 Themes
18 Plugins

The key to the "Select Files" appears to be in your last screenshot. The popup you get when clicking on the "Browse Server" button isn't showing the right page. It appears to be showing the "Admin/Uploaded" page instead of the "Admin/Browser" page.

The top of the popup is cut off though and I can't see if the url for the popup is actually http://your-installation/Admin/Uploaded

5 years ago#9126

creisi
50 Posts
creisi productions

The url of the popup, when the error message is shown, is http://my-installation/Admin/Browser?dir=%2Fimage&CKEditor=ExtraEditArea1&CKEditorFuncNum=0&langCode=en but it's showing the admin panel and not the file browser.

So, I've closed the error message (clicked on the "x") and cklicked on "Uploaded Files" to try, if I can insert the image despite the error message and then, the url is http://my-installation/Admin/Uploaded.

Sorry for the confusion; if the user has all permissions and I insert an image, there's also the option "Select Files". So nothing wrong with this.

Everything is working fine now after uncommenting line 355 :-)

Edited: 5 years ago#9130

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register