This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Request a mod for the "Restricted" Permission for Admin Users


avatar
BorisB 0
From: -
Request a mod for the "Restricted" Permission for Admin Users

Hi Philipp,

I am setting up a few editors for my site and I have given them all "Restricted" access to both the Reviews and News departments. I did this because I don't want editors to be able to delete or edit articles they don't own...the "Restricted" feature gives me that functionality.

Only problem is, with the "Restricted" permission, these new editors also cannot upload images. I want them to be able to upload images for their Reviews.

Is there a way to mod the script so that Admin users with "Restricted" permissions in Articles and News can also upload images?

Thanks Smiling Face

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Request a mod for the "Restricted" Permission for Admin Users
avatar
OP 0
From: -
Request a mod for the "Restricted" Permission for Admin Users

Philipp,

Dude, you rock!

Works perfectly Smiling Face

Thanks!
1 Re: Request a mod for the "Restricted" Permission for Admin Users
avatar
Administrator
1342
From: Austria
Request a mod for the "Restricted" Permission for Admin Users

Open cadmin/index.php in an editor and replace:

if (($aform == "reviewimgup") and ($admin[user_canreview] == 1))

with:

if (($aform == "reviewimgup") and ($admin[user_canreview]))

and:

if (($aform == "newsimgup") and ($admin[user_cannews] == 1))

with:

if (($aform == "newsimgup") and ($admin[user_cannews]))


Then open cadmin/mod_review.php and replace:

if ((phpversion() >= "4.1.0") and ($admin[user_canreview] == 1))

with:

if ((phpversion() >= "4.1.0") and ($admin[user_canreview]))

Next, open cadmin/mod_news.php and replace:

if ((phpversion() >= "4.1.0") and ($admin[user_cannews] == 1))

with:

if ((phpversion() >= "4.1.0") and ($admin[user_cannews]))

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.