Displaying 1 result from an estimated 1 matches for "ismael2".
Did you mean:
ismael
2006 Jul 11
1
Problems using the authorization plugin from Bill Katz
...Its pretty straight forward to setup and should be to use.
But when i try to give the same permission on two differents users on
the same object i get an error.
(Well , Im kinda new to all this rails stuff)
r = Red.find(1)
u1 = User.find_by_login("ismael")
u2 = User.find_by_login("ismael2")
u1.has_role "proprio", r
u2.has_role "proprio", r
ActiveRecord::StatementInvalid: Mysql::Error: Duplicate entry ''5'' for
key 1: INSERT INTO roles_users (`updated_at`, `role_id`, `id`,
`user_id`, `created_at`) VALUES (''2006-07-11 13:58:35'&...