Can you restrict members/groups to certain categories? 
Posted: 08 April 2008 10:32 PM   [ Ignore ]  
Summer Student
Avatar
Total Posts:  28
Joined  04-07-2008

Hi guys,

I need to know if a module, plugin or extension exists so that I can stop members from publishing articles in certain categories. What I basically want is a member (or a group) to not even see certain categories when they go to publish an article.

So, to give you a basic ‘workflow’ of what I need:

1) Admin creates a member and assigns them to the ‘Limited’ group
2) Admin assigns the user to the ‘News’ and ‘Personal’ categories, but not to the ‘Work’ or ‘Random articles’ categories.
3) User creates a new article, but the only category options they have are the ‘News’ and ‘Personal’
4) Everyone is happy!

I can’t use the ‘Weblogs’ in this case, since I need them to define the types of articles being written, so everyone should be able to access all ‘Weblogs’, but not be able to publish under certain categories…

If nothing like this exists, would writing an Extension be the way to go?

Thanks,

Michael

Profile
 
 
Posted: 08 April 2008 11:18 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  13102
Joined  05-15-2004

No, sorry, I know of no way to accomplish this. You probably have to re-think your setup, using weblogs instead of categories would be the way to go.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 08 April 2008 11:28 PM   [ Ignore ]   [ # 2 ]  
Summer Student
Avatar
Total Posts:  28
Joined  04-07-2008

Thanks for the reply… I figured that would be the case, so I’m writing an extension. I’m going to basically do this:

1) Create a custom field for categories
2) Type a comma-separated list of member groups that have access to this category
3) Write an extension that uses the ‘publish_form_category_display’ hook to manipulate the display of the categories
4) Show only the categories the user has access to.

Unfortunately, weblogs fits in extremely well into another aspect of the project, so I can’t use them. Everything EE offers fits really well, its just this permissions model that lacks a little for my use…

Thanks!

Michael

Profile
 
 
Posted: 09 April 2008 12:03 AM   [ Ignore ]   [ # 3 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  13102
Joined  05-15-2004

Well, good luck to you, and let us know how it goes. I am sure there’d be more people interested in that functionality.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
Posted: 23 June 2008 12:59 PM   [ Ignore ]   [ # 4 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  122
Joined  06-03-2006

Hi Michael, just following up on this issue.

Were you able to get an extension written to limit access for certain member groups to a specific category? Thanks!

Jae

 Signature 

ejaedesign.com

Profile
 
 
Posted: 23 June 2008 02:27 PM   [ Ignore ]   [ # 5 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  195
Joined  02-02-2007

Hi Michael,

Restricting member groups to certain categories is a very useful, very needed feature. Some time ago I even posted a feature request asking for this.

I wish you the best success in writing your extension and hope to be able to try it in the near future.

 Signature 

Full list of plugins here

Child Categories
Browser Sniff
Category Id
Entries List

Profile
 
 
Posted: 23 June 2008 05:55 PM   [ Ignore ]   [ # 6 ]  
Summer Student
Avatar
Total Posts:  28
Joined  04-07-2008

Hi guys,

I did write an extension but I’ll need to get permission before I publicly release anything. I’ll have a chat to the right people today and I’ll see what I can do.

Profile
 
 
Posted: 23 June 2008 06:17 PM   [ Ignore ]   [ # 7 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  122
Joined  06-03-2006

That’d be great Michael - and thanks a bunch smile

 Signature 

ejaedesign.com

Profile
 
 
Posted: 26 June 2008 01:43 AM   [ Ignore ]   [ # 8 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  176
Joined  10-24-2006

This would be a great plug-in for us as well, please keep the community posted.

 Signature 

Dabbledoo Media

-----------------------------------------------
Gadgetell - Tech News and Reviews
Gamertell - Gaming Hardware and Product News
Appletell - Apple News and Rumors

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 61049 Total Logged-in Users: 15
Total Topics: 73853 Total Anonymous Users: 6
Total Replies: 398371 Total Guests: 445
Total Posts: 472224    
Members ( View Memberlist )