We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Category Permissions - found it once, but now its gone

Development and Programming

Joel Bradbury's avatar
Joel Bradbury
18 posts
16 years ago
Joel Bradbury's avatar Joel Bradbury

I’m looking for an extension that allows specifying which categories a user can post to.

A quick search turned up Category Permission on this page, but it points to this url : Trulyee but that sites dead now.

I’ve looked but can’t find that extension listed anywhere else.

Any thoughts - either on this extension or one that would do similar.

Thanks

       
Laisvunas's avatar
Laisvunas
879 posts
16 years ago
Laisvunas's avatar Laisvunas

Hi Joel,

Victor published Category Permission extension under Creative Commons Attribution-Share Alike 3.0 Unported license.

This license gives us the right to redistribute the software. So grab it using the link below.

I made a small change in Victor’s version.

In the file ext.category_permission_ext.php near the line 220 the code

/** ----------------------------------------
        /**    Members
        /** ----------------------------------------*/
        $members = $DB->query("    SELECT    mb.screen_name,
                                        mb.member_id
                                FROM    exp_members as `mb`
                                    LEFT JOIN exp_member_groups as `mg`
                                        ON mb.group_id = mg.group_id
                                WHERE mg.can_access_admin = 'y'
                                AND mg.site_id = $this->site_id
                                ORDER BY mb.screen_name

                            "); //print_r($members);

I changed into

/** ----------------------------------------
        /**    Members
        /** ----------------------------------------*/
        $members = $DB->query("    SELECT    mb.screen_name,
                                        mb.member_id
                                FROM    exp_members as `mb`
                                    LEFT JOIN exp_member_groups as `mg`
                                        ON mb.group_id = mg.group_id
                                WHERE mg.can_access_cp = 'y'
                                AND mg.site_id = $this->site_id
                                ORDER BY mb.screen_name

                            "); //print_r($members);

It was needed in order to make this extension useful for those contributors who post after logging into CP but have no right to access Admin tab.

       
Joel Bradbury's avatar
Joel Bradbury
18 posts
16 years ago
Joel Bradbury's avatar Joel Bradbury

Thanks!

That’s a great help. Lifesaver in fact.

Cheers.

       
Philip Zaengle's avatar
Philip Zaengle
293 posts
16 years ago
Philip Zaengle's avatar Philip Zaengle

I needed a plugin to do the same thing, thanks for the posts guys!

       
Laisvunas's avatar
Laisvunas
879 posts
16 years ago
Laisvunas's avatar Laisvunas

Hi guys,

I was dissatisfied with the UI of Category Permissions extension and needed some additional functionality - the possibility to set permitted categories as default.

So, I did some hacking and here is the result - Category Rights extension.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.