TinyPortal

General => Chit chat => Topic started by: Axel on December 16, 2005, 02:45:28 AM

Title: Articles premission problem
Post by: Axel on December 16, 2005, 02:45:28 AM
Hi, im new.

Any option I choose in the permissions panel it do not come accepted and anyone can send an article, also a guest!!.  How I can resolve?
I use 0.75 versione

Thanks

Excused my bad English.  ::)
Title: Re: Articles premissione problem
Post by: IchBin on December 16, 2005, 03:13:15 AM
In TPAdmin click on submissions. Is that where you are checking permissions?
Title: Re: Articles premissione problem
Post by: Axel on December 16, 2005, 03:19:33 AM
Yes, is there.

I've checked only mod e global mod, but also guest can submit articles...

Also here a guest can view this page... http://www.tinyportal.net/smf/index.php?action=tpmod&sub=submitarticle
and submit an article!!!  :o
Why?

Bye and thanks
Axel
Title: Re: Articles premissione problem
Post by: Axel on December 16, 2005, 01:30:27 PM
up
Title: Re: Articles premission problem
Post by: IchBin on December 17, 2005, 12:08:53 AM
You can create an article here because Bloc has set the permissions to allow it. Is this the section your are changing for permissions?

[attachment deleted by admin]
Title: Re: Articles premission problem
Post by: Axel on December 17, 2005, 12:13:35 AM
to me is difficult to explane that in englsh, but i want to say that if i deselect all checkbox (block all) is the same thing...

In any way all user can submit articles... in any way...
Title: Re: Articles premission problem
Post by: IchBin on December 17, 2005, 06:06:20 AM
If nothing is checked (or selected), nobody should be able to create articles.
Title: Re: Articles premission problem
Post by: Axel on December 17, 2005, 05:00:49 PM
Trust to me that I am not crazy.  it is obvious that it must be like you say you, but instead is not therefore.  I invite to you to try... try to verify same you and makes to know me.  I think that is a bug not to underrate!

Bye,
Axel

PS:My forum is http://mp4.altervista.org and i've disabled all permission... try to submit an article from guest... ;)
Title: Re: Articles premission problem
Post by: IchBin on December 17, 2005, 05:47:22 PM
I know that you are not crazy. :) But, I can not find any link to create an article as a guest on your forum.
Title: Re: Articles premission problem
Post by: Axel on December 17, 2005, 07:13:45 PM
Eheh.. sure... if also guest can submit... ;)

Try this: http://[my_site]?action=tpmod&sub=submitarticle
[my_site]=mp4.altervista.org

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.hostfiles.org%2Fminiature%2F20051217081741_permission.jpg&hash=7dafba220f8b7c7491aa5e6be7b5a6d079ffd800)  (http://www.hostfiles.org/image.php?id=202943)
Title: Re: Articles premission problem
Post by: IchBin on December 17, 2005, 07:22:45 PM
Yes, I see that the same happens on mine. This is beyone my skills, it's something Bloc needs to look into. Hopefully he will see this and be able to give us more information.
Title: Re: Articles premission problem
Post by: Axel on December 17, 2005, 07:38:40 PM
Ok, thanks! :)

I hope that the boss Bloc ;) it sees this topic... but it is not that you can show it to him?
Title: Re: Articles premission problem
Post by: bloc on December 17, 2005, 11:48:46 PM
I see it..and yes, its a bug. The submit routine check wrongly...

If you want to get rid of it, open TModules.template.php and find this code:
                     if(isset($context['TPortal']['can_submit_article'])){

and replace with:
                     if($context['TPortal']['can_submit_article']==1){

..then the permissions will work correctly.
Title: Re: Articles premission problem
Post by: Axel on December 18, 2005, 12:00:53 AM
 ;D Wow... thnaks Bloc. Now work fine!!

But, I've added also, on TPortalAdmin.php $f=implode(',',$tpgroups_approved); after $e=implode(',',$tpuserbox); to write correctly on db table: tportal_settings field: approved_membergroups

Is correct?

Tnx a lot!
Axel
Title: Re: Articles premission problem
Post by: bloc on December 18, 2005, 12:22:32 AM
"approved" is pre-approved groups( they bypass the submission routine, articles go "live" right away), but this feature is not working yet.

"allowed" is the actual groups able to submit. So it should be fine i think.

This area needs more work, "approved" needs to be working, and "allowed" needs options of using wysiwyg or not..since its a powerful feature you might not want all grups to use it..but still submit html code/article.
Title: Re: Articles premission problem
Post by: Axel on December 18, 2005, 12:32:23 AM
Well, now is ok.
I'm going to start to understand how work more thing.

I will try to give my small contribution, for how much I can. :)

Bye,
Axel
Title: Re: Articles premission problem
Post by: bloc on December 18, 2005, 12:37:46 AM
:) Any feedback is welcome, it helps getting TP better.