3

Is it possible to restrict a part of a website to craft user-groups?

For instance if I want show an internal Blog to members-only.

And is it possible to moderate user registrations? So when somebody registers an Admin has to approve it first?

1 Answer 1

5

It is! You can use the requirePermission tag:

{% requirePermission "yourPermission" %}

See the full documentation here. Keep in mind this list as built in permissions but you can also add custom permissions through a plugin should you require it.

As far the second question, I'm not 100% sure but I believe you can set "enabled" to "false" when creating a registration form. See further details here.

Update: You can also use isInGroup

1
  • Thank you. I'll look into it. Never had anything to do with user based stuff.
    – KSPR
    Commented Oct 7, 2014 at 6:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.