Displaying 4 results from an estimated 4 matches for "groupuser".
2006 Jul 16
6
using collection_select
hello,
supposing i have a User class that contains a Wibble
class User < ActiveRecord::Base
has_one :wibble
end
in my view i have
<%= collection_select :user, :wibble, Wibble.find(:all), :id, :name %>
when i post, i get an error like
"Wibble expected, got String"
how/where am I supposed to convert this posted wibble_id into a
Wibble, or am I using collection_select
2010 Aug 19
1
has_many :through question
...ion tables and run rake db:migrate
I have the following model:
class Group < ActiveRecord::Base
has_many :users, :through => :group_user
has_many :invites, :through => :group_invite, :class_name => "User"
belongs_to :owner, :class_name => "User"
end
class GroupUser < ActiveRecord::Base
belongs_to :group
belongs_to :user
end
Loading development environment (Rails 2.3.8)
>> g = Group.find(1)
=> #<Group id: 1, name: "My Group", owner_id: 1, created_at: &qu...
2017 Oct 25
0
authenticate as userA, but get authorization to user userB's account
...rbird) in combination
> with Dovecot. That is, doing something like logging in to the account
> sales at example.com, using the credentials of the very own account (say
> hans at example.com)?
We faced the same problem and solved it with a PAM module:
https://gitlab.kfki.hu/kadlec/pam-groupuser
Any kind of MUA are supported with whatever background authentication you
have. Here follows the README:
This tiny PAM module makes possible to authenticate to group user
accounts, where
- the group user has got an own group with the same name as its username
- the group members are real users...
2017 Oct 25
6
authenticate as userA, but get authorization to user userB's account
Hello,
given a small organization. There are *personal* mailboxes (mailbox per
user, incl. subfolders et cetera). The users can share specic folders
via the ACL (we call it "other users/", Dovecot calls it "shared"
folder. Additionally there are mailboxes Dovecot calls "public" (we use
the term "groups/"). They are not associated with a specific account,