You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can I use groupify to create user owned groups that are only accessible to the owners? For example, a Facebook user can create a user group and assign friends to that group, but others cannot see this group. Is this easily done with Groupify?
Please explain - an example would be fantastic, time permitting.
The text was updated successfully, but these errors were encountered:
I suppose you can use membership types to add one user to the group as "owner" and the others as "friends". You can then use authorization rules so that only the owner can view the group.
# Set up the groupgroup=Group.create!group.add(owner,as: 'owner')group.add(owner.friends,as: 'friend')# Retrieve the groupgroup=owner.groups.as('owner')friends=group.users.as('friend')# Restrict accesscurrent_user.in_group?(group,as: 'owner')
Can I use groupify to create user owned groups that are only accessible to the owners? For example, a Facebook user can create a user group and assign friends to that group, but others cannot see this group. Is this easily done with Groupify?
Please explain - an example would be fantastic, time permitting.
The text was updated successfully, but these errors were encountered: