Displaying 6 results from an estimated 6 matches for "group_membership".
Did you mean:
group_memberships
2009 Nov 17
5
has_many :through and foo.bars.include?
...;has_many :through", that i just couldn''t find
what i was looking for. so, i''m really sorry if this has been asked
before. if so, just drop me the link.
i have a has_many :through relationship similar to the following
example:
class Group < ActiveRecord::Base
has_many :group_memberships,
:dependent => :destroy
has_many :admins,
:through => :group_memberships,
:source => :user,
:conditions => ''is_admin = true AND pending = false''
end
class GroupMembership < ActiveRecord::Base
belongs_to :group
belongs_to :user
end
class Use...
2016 Nov 28
2
Samba on Debian 8; NT4 domain, win10
On Mon, 28 Nov 2016 09:49:31 +0100
"Stefan G. Weichinger via samba" <samba at lists.samba.org> wrote:
> Am 2016-11-26 um 20:50 schrieb Stefan G. Weichinger via samba:
>
> > Thanks for the hints, I already read the wiki, yes.
> > I will look at the users and groups next week then.
>
> attacked that now in a VM:
>
> cpied /var/lib/samba and /etc
2016 Nov 28
3
Samba on Debian 8; NT4 domain, win10
...to:
>
> Ignoring group memberships of 'pl13'
> S-1-5-21-2940660672-4062535256-4144655499-2026: Unable to enumerate
> group memberships, (-1073741724,No such user)
>
> ?
>
> Thanks, Stefan
>
OK, that error message is coming from here:
try:
group_memberships = s3db.enum_group_memberships(user);
for group in group_memberships:
if str(group) in groupmembers:
if user.user_sid not in groupmembers[str(group)]:
groupmembers[str(group)].append(user.user_sid)
else:...
2006 Jul 31
1
Adding "groups" to a user model
...rs <-> permissions <-> objects
I wish to expand this to include groups, so that groups can contain
users and have permissions (a user might be part of more than one
group). However, the only way I see to do this is:
users <-> user_permissions <-> objects
users <-> group_memberships <-> groups <-> group_permissions <-> objects
Is there a nicer way to do this so that I only need one permissions
model, or is this the best way to do it?
Also, whichever way I do it, is there a nice way to make groups for
special cases such as "all users" and "...
2007 Aug 23
0
how to manage group permissions?
...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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscr...
2009 May 31
0
[HELP] pagination w habtm association and authorization plugin...
I am using the proven authorization plugin to defines roles for users,
so I can get all groups where a user is ''member''
@groups = current_user.group_memberships
I have an habtm association between groups and events
class Group < ActiveRecord::Base
has_and_belongs_to_many :events
..
class Event < ActiveRecord::Base
has_and_belongs_to_many :groups
I am trying to list and paginate (with the will_paginate plugin) all
events in all groups a user...