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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,965
  • Latest: boruko
Stats
  • Total Posts: 195,982
  • Total Topics: 21,320
  • Online today: 431
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 104
  • Total: 104

[bugtracker] Global Moderator cannot edit Articles

Started by espressoguy, October 26, 2008, 06:38:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

espressoguy

When a global moderator (or anyone but the Admin User) attempts to save an article, they get an error "Sorry, you aren't allowed to fetch news".  Best way to see this bug is with a fresh pristine install of TP 1.0.6 on top of pristine SMF 1.1.5.  Go through all the steps of creating category and test article (I made the article a front page article).  Then create a user and make the user a Global Moderator.  Log out, log in as the new Global Moderator user and try to edit the article.  When you click "save" to save your edits you get the error and are unable to save the edits.

G6Cad

How are the settings set in the membergrup permissions area for the global moderator ? You need to set the permissions for that group in there to handle tinyportal features.

espressoguy

Permissions for Global Moderator are all at default except that "TinyPortal>Manage_Articles" is checked.  All other permissions were left at default.

espressoguy

#3
Tentative Bugfix for this bug for TP 1.0.5 and 1.0.6.  I have tested and verified that it seems to be working for both versions (5 and 6) and I am posting it here since the bug is such a serious one that disables a very important feature of the software. 

Bugfix for non-Admin users being unable to edit 'Articles':

TP 1.0.5  - in Sources/TPortalAdmin.php:

ORIGINAL CODE:
137     // check permissions
138     if(in_array($tpsub, array('news')))
139         isAllowedTo('tp_news');
140     elseif(in_array($tpsub, array('settings','frontpage','panels','modules','credits','portal','subscriptiongroups')))
141     {
142         isAllowedTo('tp_settings');
143     }

CHANGE TO:
137     // check permissions
138     if(in_array($tpsub, array('news'))) {
139        // isAllowedTo('tp_news');
140    } elseif(in_array($tpsub, array('settings','frontpage','panels','modules','credits','portal','subscriptiongroups')))
141     {
142         isAllowedTo('tp_settings');
143     }


For TP 1.0.6, simply comment-out line 134 of Sources/TPortalAdmin.php:

  131        //isAllowedTo('tp_news');



Thanks to Caarrie for originally posting the fix to this bug.


vanityq

is this also applicable with
TP 1.0 beta 3.)?

i still encounter the problem and set my permission setting of TP to enable all

espressoguy

#5
Note that the bugtracker log says it is fixed in Beta 3.  But I personally haven't tested it since I first saw it last October.

vanityq

im experiencing it now with TP3
i cannot save blocks or even move it

it says an error


++++++++++++++++++++++++++++
An Error Has Occurred!
Sorry, you aren't allowed to fetch news.
++++++++++++++++++++++++++++

is my problem related to this?



IchBin


Buzzrek

#8
Quote from: IchBinâ„¢ on March 06, 2009, 04:22:39 AM
That is another bug, which is fixed in beta4. :)

Is there a work around for the time being? I don't see beta 4 on the downloads page and I'm experiencing the same problem on my site.

edit: I should have included that I am running SMF 1.1.8 and TP v1.0 beta 3

Thanks,
Buzzrek

G6Cad

Nope, if the fix is easy, Bloc would have added what and how to fix it, but as he didnt, i assume it's a multiple files change, so no fix

This website is proudly hosted on Crocweb Cloud Website Hosting.