YAFLogo

jbradshaw
  • jbradshaw
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
6 years ago
I've got my forums up and going. I've created a couple of forums and am now trying to restrict access to them. Do I specify a role for each forum? Do I define an access mask? This would be having three 'areas' and people only have rights to one out of three.

Or do I create boards? Can I restrict access to that?

Here's an example (although it's a dumb example). I want an area for books and an area for movies. If I want to be able to give access to either or both by person. So is that forums or boards?

TIA - Jeff.
Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
6 years ago
Originally Posted by: jbradshaw 

I've got my forums up and going. I've created a couple of forums and am now trying to restrict access to them. Do I specify a role for each forum? Do I define an access mask? This would be having three 'areas' and people only have rights to one out of three.



The normal way is you would assign a user to a role and next for each forum you apply a different access mask for each role. But you can also apply an access masks direct to a user for a specific forum.

In your example you only would need a user group (role) books and movies and next set the access masks.

So really you only need one board. You only need to set the access mask "Hide if no access" for each forum so the user would only see the forums he or she have access to.
jbradshaw
  • jbradshaw
  • 51.8% (Neutral)
  • YAF Forumling Topic Starter
6 years ago
I apparently am brain farting...So would I create two new roles - One called BooksRole and one MovieRoles? And then for the Books forum give access to BooksRole only and Movies would have MoviesRole. Then if a person wants access to both they would have each role?
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
6 years ago
Originally Posted by: jbradshaw 

I apparently am brain farting...So would I create two new roles - One called BooksRole and one MovieRoles? And then for the Books forum give access to BooksRole only and Movies would have MoviesRole. Then if a person wants access to both they would have each role?



Correct you create 2 roles and next you apply for the books forum the Member Access mask for the Books Role and the No Access Mask for the Movie Roles. And similar for the Movie Forum apply the Member Access mask for the Movie Role and the No Access Mask the Books Role.
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button