# How to manage group permissions?

**URL:** <https://www.ruby-forum.com/t/how-to-manage-group-permissions/112867>\
**Category:** Rails\
**Created:** [August 24, 2007, 12:18am UTC](https://www.ruby-forum.com/t/how-to-manage-group-permissions/112867 "2007-08-24T00:18:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![patcito](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/50afbb/32.png) [@patcito](https://www.ruby-forum.com/u/patcito)\
**Post date:** [August 24, 2007, 12:18am UTC](https://www.ruby-forum.com/t/how-to-manage-group-permissions/112867/1 "2007-08-24T00:18:13Z")

</div>

Hey all,  
In my app users can create groups and the group creator can “kick” or  
“ban” users. I want the creator to be able to grant other members of  
the group to kick and ban.  
This is how I want to do it:  
I’m usgin acl\_system2 and the creator can grant kick and ban  
permissions to group members by creating roles “kick\_group\_id” or  
“ban\_group\_id” for those users and then in the view I do:

\<% restrict\_to "(creator | kick\_#{@group.id}) do %\>  
\<%= link\_to “kick this user out of the group”,  
group\_membership(@group,membership),:method=\>‘delete’%\>  
\<% end %\>

is this a good way to deal with this problem or is there a (way)  
better or simpler solution?

Thanx in advance

Pat
