TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

July 03, 2024, 09:21:55 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,285
  • Total Topics: 21,228
  • Online today: 76
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 99
  • Total: 99

A very annoying error in TP DL Manager.

Started by Megaforum, November 08, 2007, 05:47:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dragooon

I don't know if it is posted before or not, But I found a Very annoying error.
Whenever a user submits a download and if it is not approved and you try to download it as a Admin, or someone who is allowed to manage Download Manager it just gives a error saying "You are Not allowed to access this section or something",
And Here is a solution I came up with
In /Sources/TPdlmanager.php
In TPdownload() function find,
// can we actually download?
if($show==1){
(Or Something similar as I am copying this from a modified TPdlmanager.php
And replace it with
// can we actually download?
if($show==1 || allowedTo('tp_dlmanager')){

It is obvious that if someone is allowed to manage Downloads he should be automatically able to download the files.
Make sure to clear your cache before trying to download this again.

Its not in my intension to act Rude or angry, if you might be thinking I am acting rude or angry you are wrong here :).

bloc

Actually a good suggestion :) , I will add this in.

Dragooon

Can you also do like, if someone is also allowed to manage downloads, he can automatically see every category and files or Am I missing something here?

bloc

He should do that already, if the permission is there.

Dragooon


bloc

Hm you may be onto something...access to a Download folder is determined from membergroup. But if a member is in a membergroup that isn't listed within the folder access range, he won't see it. But he will eb able to see it in admin. This is def. a bug if works like that.

Dragooon

But when not approved, There is no folder there which anyway makes it not possible to download.
I believe it can be a good idea to make it stop its permission checks if the user is allowed to manage downloads. Saves many bugs.

bloc