
RuntimeError in Admin/users#edit
Reported by Aurélien Malisart | October 31st, 2008 @ 07:49 AM | in Release 0.1.1
Hi,
If I do a fresh install (last git version at this time), and so create a site, everything works and I get redirected to /admin/install with these choices: - change your password right now - manage your new site
If I chose the first action, I get this error in /user/edit/1
RuntimeError in Admin/users#edit role Rbac::Role::Admin needs a context
Detailed stack here: http://pastie.org/304715
I notice that at that time, the line in the 'roles' table corresponding to my user has NULL as its 'context' value.
Aurélien
Comments and changes to this ticket
-
Sven Fuchs January 9th, 2009 @ 01:57 PM
- Milestone set to Release 0.1.1
- Assigned user changed from Sven Fuchs to Marko Seppä
- Title changed from RuntimeError in Admin/users#edit to RuntimeError in Admin/users#edit
This should be fixed, imo? Marko can you verify this?
-
Thomas R. Koll January 15th, 2009 @ 02:17 PM
- State changed from new to resolved
Actually the problem was that Rbac::Role.initialize was and is a terrible hack and required you to include a :context in the attributes. Now it set the :context itself if it has a :context_type and :context_id
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<p>Cutting edge cms, blog, wiki, forum ... plattform.</p>
<p>Find the code on <a href="http://github.com/svenfuchs/adva_cms/tree/master">GitHub: adva cms</a></p>
<p>Part of the business application framework <a href="http://www.advabest.org/">adva best</a>.</p>