Contentteller

Contentteller Support Forums
Home Forums > Contentteller > Version 1.x >

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

Discussion in 'Version 1.x' started by BorisB, Jun 22, 2005.

  1. BorisB Guest

    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 :)
    BorisB, Jun 22, 2005
    #1
  2. Philipp Guest

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

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

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

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

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

    Code:
    if (($aform == "newsimgup") and ($admin[user_cannews]))
    Then open cadmin/mod_review.php and replace:

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

    Code:
    if ((phpversion() >= "4.1.0") and ($admin[user_canreview]))
    Next, open cadmin/mod_news.php and replace:

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

    Code:
    if ((phpversion() >= "4.1.0") and ($admin[user_cannews]))
    Philipp, Jun 23, 2005
    #2
  3. BorisB Guest

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

    Philipp,

    Dude, you rock!

    Works perfectly :)

    Thanks!
    BorisB, Jun 23, 2005
    #3
Tweet
Facebook:
Forgot your password?
Contentteller Support Forums
Home Forums > Contentteller > Version 1.x >
  • Home
  • Forums

    Forums

    Quick Links
    • Search Forums
    • What's New?
  • Members

    Members

    Quick Links
    • Registered Members
    • Current Visitors
    • Recent Activity
  • Help

    Help

    Quick Links
    • Smilies
    • BB Codes
    • Trophies

Separate names with a comma.

Advanced search...
    Forum software by XenForo™ ©2011 XenForo Ltd.