TinyPortal

Development => Feedback => Topic started by: Nokonium on January 10, 2006, 07:12:30 PM

Title: Individual Block permissions
Post by: Nokonium on January 10, 2006, 07:12:30 PM
Would it be possible to add to the block permissions which membergroups are allowed to shrink the block? A co-admin is working on a site where there is some specific block information that he doesn't want guests or some categories of member to 'ignore'.
Title: Re: Individual Block permissions
Post by: bloc on January 11, 2006, 12:12:14 PM
It should be possible..but wouldn't it be better to rather can/cannot upshrink? it seems a bit over the top to check if the member are allowed to upshrink that one block..as opposed to everyone can or cannot upshrink?
Title: Re: Individual Block permissions
Post by: Xarcell on January 11, 2006, 01:02:04 PM
I see where he's coming from if your putting ad's in the blocks.
Title: Re: Individual Block permissions
Post by: bloc on January 11, 2006, 01:55:38 PM
Yeah, I meant one global setting: allow blocks to be upshrinkable or not. Thats just one one/off value. Then each block can have a single value of possible/not possible to upshrink. If per membergroup, then every block needs to check for membergroup twice, one for permission to see it, and then for upshrinkable if seen. The routine for checking membergroups takes some time(relatively), so it slows it down.
Title: Re: Individual Block permissions
Post by: Xarcell on January 11, 2006, 02:49:15 PM
permission based on membergroup not a good idea?
Title: Re: Individual Block permissions
Post by: IchBin on January 11, 2006, 06:22:25 PM
As he was saying Xarcell, that would mean that TP would have to check for permissions on blocks twice. Which he is trying to avoid if all possible. I think just having the option to show or not show (admins choice, not anyone else's choice) should be fine.