| User Permission System BETA 2 [message #11207] |
Wed, 30 August 2006 19:21  |
Draven Messages: 760 Registered: January 2006 |
Faithful Member |
|
|
I've taken most of the suggestions given in the first beta of my RBAC user system and did some major recontructing. The changes are as follows:
1. Now supports I18n
2. Now uses the admin generator to handle all user management instead of the user_admin module
3. Includes entire admin theme
4. supports permission management across infinite applications within a project.
5. Now manages logins for both front and backend apps all configured from the backend app. I did this since a majority of users will be using the admin generator to administer their applications.
6. Database redesigned to utilize new symfony beta many-to-many relations and simplified naming conventions.
There is now a wiki page explaining usage and installation at http://www.symfony-project.com/trac/wiki/UserRbac
NOTE: This system requires functionality from the symfony 1.0 Beta release.
Please post any feedback here.
[Updated on: Wed, 30 August 2006 19:38]
|
|
|
|
| Re: User Permission System BETA 2 [message #11214 is a reply to message #11212 ] |
Wed, 30 August 2006 23:02   |
Draven Messages: 760 Registered: January 2006 |
Faithful Member |
|
|
| Antik wrote on Wed, 30 August 2006 22:33 |
And i do not understand how to edit permission table? Link to permisions needed in menu...
UPD: Another error:
Fatal error: Call to a member function getUsername() on a non-object in F:\Server\domains\rbac\apps\admin\modules\permission\actions \actions.class.php on line 40
... after i click on icon "Create permision"
|
You do not access the permissions module directly, that is why there is no link to the permission module directly. As per the documents in the wikki you set permissions by clicking the permission icon (the key) next to a Role under the Role List link or next to a User under the User List. Do not try to access the permissions module directly. It is not designed to set permissions in that way, you must specify a user or role to edit permissions for.
I will have a look at _env.php error, that was removed and replaced with _app.php.
[Updated on: Wed, 30 August 2006 23:10]
|
|
|
|
|
| Re: User Permission System BETA 2 [message #11439 is a reply to message #11277 ] |
Tue, 05 September 2006 09:26   |
tweety Messages: 26 Registered: June 2006 Location: India |
Junior Member |
|
|
just Install
found and error
Fatal error: Class 'sfUserRbac' not found in /usr/local/php/lib/php/symfony/user/sfUser.class.php on line 103
I don't how to fix it and I'm using symfony version 0.7.1914
With Regards
Tweety
|
|
|
|
| Re: User Permission System BETA 2 [message #11625 is a reply to message #11465 ] |
Thu, 07 September 2006 11:38   |
tweety Messages: 26 Registered: June 2006 Location: India |
Junior Member |
|
|
I copied the entire folder that solve the previous error.
Now found new error
[sfViewException]
Unable to load "I18n" helper in: /var/www/test/apps/admin/modules/users/lib/helper, /var/www/test/apps/admin/lib/helper, /var/www/test/lib/plugins/symfony/helper, /usr/local/php/lib/php/symfony/helper, /var/www/test/lib, /var/www/test/apps/admin/lib, /usr/local/php/lib/php/symfony/vendor, ., /usr/local/php/lib/php
stack trace
* at ()
in SF_SYMFONY_LIB_DIR/helper/HelperHelper.php line 68 ...
65. // search in the include path
66. if ((@include_once('helper/'.$fileName)) != 1)
67. {
68. throw new sfViewException(sprintf('Unable to load "%s" helper in: %s', $helperName, implode(', ', array_merge($dirs, explode(PATH_SEPARATOR, get_include_path())))));
69. }
70. }
71.
* at use_helper('I18n')
What cause this error?
I have not initiate I18NFiles this might cause the problem
With Regards
Tweety
|
|
|
|
|
|
| Re: User Permission System BETA 2 [message #11652 is a reply to message #11651 ] |
Thu, 07 September 2006 16:05   |
francois Messages: 1627 Registered: October 2005 |
Faithful Member |
|
|
Hi Draven,
About not telling you:
This module has been worked on by Fabien for the past 6 months, a little here and there, but has never really been functionning. The goal was to release it as a plugin, and we had to rework the plugin system before releasing it.
The approach is a little different than yours, and when we eventually decided to finalize it, it was easier to start from what we had written (which we knew about) than what you had written (which we downloaded, installed, had a quick look at and decided that it was not what we wanted).
At that time (about a week ago), maybe we should have told you, I'm sorry for that, but it wouldn't have changed much. And we wouldn't tell you to stop your module before because we never stop people from developping things, and we didn't know if ours would be finished one day.
All in all, I think that the two modules can live together, since we don't have the same approach.
About publishing in your thread:
I didn't mean to offend you but to help the people looking for a User permission system to find one already working - I don't know about the status of your module but you must agree that people might be interested.
If you feel offended, then I'll remove my posts from this thread and start a new one.
We really try to think about the community, and we welcome all contributions, including yours, so please don't be upset ...
|
|
|
|
|
| Re: User Permission System BETA 2 [message #11655 is a reply to message #11653 ] |
Thu, 07 September 2006 16:33   |
francois Messages: 1627 Registered: October 2005 |
Faithful Member |
|
|
There are so many things that we work on even without knowing if they will eventually be published...
When Draven first talked about his module, I think our module was less advanced than his one, so there was no point trying to stop him.
The direction that Draven took turned out to be not the one we would have chosen. We understood that lately, when we tried to use his module and saw that it would maybe took us less time to get to our target from our base.
In an ideal world, we would have looked at his code very early, saw that the direction was not the best according to our choices, scheduled the release of our module before his AND be able to tell him to stop.
So again, I'm sorry that you and Draven feel that your work is useless (I think it isn't), but please don't blame us for not communicating enough. Not only do we communicate a lot, but in this particular case, I see no good reason, retrospectively, to tell Draven that he shouldn't work on this suject (or on this solution).
|
|
|
|
| Re: User Permission System BETA 2 [message #11658 is a reply to message #11655 ] |
Thu, 07 September 2006 16:47   |
halfer Messages: 8767 Registered: January 2006 Location: West Midlands, UK |
Faithful Member |
|
|
| francois wrote on Thu, 07 September 2006 15:33 | I'm sorry that you and Draven feel that your work is useless (I think it isn't)
|
Actually, I am sure that there is still much value in Draven's work, and I certainly do not think it is useless. However, he may be less inclined to work on it now, given that it inadvertently competes with your system. That said, I agree with Fabien that multiple solutions to the one problem can be actively maintained, and would encourage work on this system to continue if appropriate.
| francois wrote on Thu, 07 September 2006 15:33 | but please don't blame us for not communicating enough
|
Perhaps you could you make a post in the Feature Requests forum of your unfinished items, or even open up a new forum for collaborative work? This I think might help. Also, while blame can be overdone, if some responsibility is diplomatically accepted - fairly or otherwise - Draven will feel better about it and hopefully will continue as a member of this fine community.
[rewritten for clarity]
[Updated on: Thu, 07 September 2006 17:04] Remember Gaza
|
|
|
|
|
|
|
|
|
|
|
| Re: User Permission System BETA 2 [message #13138 is a reply to message #11773 ] |
Mon, 02 October 2006 11:45   |
haZe Messages: 78 Registered: September 2006 |
Member |
|
|
| Quote: | I copied the entire folder that solve the previous error.
Now found new error
[sfViewException]
Unable to load "I18n" helper in: /var/www/test/apps/admin/modules/users/lib/helper, /var/www/test/apps/admin/lib/helper, /var/www/test/lib/plugins/symfony/helper, /usr/local/php/lib/php/symfony/helper, /var/www/test/lib, /var/www/test/apps/admin/lib, /usr/local/php/lib/php/symfony/vendor, ., /usr/local/php/lib/php
stack trace
* at ()
in SF_SYMFONY_LIB_DIR/helper/HelperHelper.php line 68 ...
65. // search in the include path
66. if ((@include_once('helper/'.$fileName)) != 1)
67. {
68. throw new sfViewException(sprintf('Unable to load "%s" helper in: %s', $helperName, implode(', ', array_merge($dirs, explode(PATH_SEPARATOR, get_include_path())))));
69. }
70. }
71.
* at use_helper('I18n')
What cause this error?
I have not initiate I18NFiles this might cause the problem
|
i have exactly the same error how do you fixed it or how can i fix it
|
|
|
|
| Re: User Permission System BETA 2 [message #13236 is a reply to message #13156 ] |
Wed, 04 October 2006 08:24   |
tweety Messages: 26 Registered: June 2006 Location: India |
Junior Member |
|
|
hello haZe,
If you still want to use RBAC then replace all the I18n with I18N or simply copy I18NHelper.php to I18nHelper.php in
/usr/local/php/lib/php/symfony/helper/
With Regards
Tweety
|
|
|
|
|
|
|
|