Roland Mas [Sun, 23 May 2010 19:46:00 +0000 (19:46 +0000)]
Fixed yet another wrong variable name
Roland Mas [Sun, 23 May 2010 19:41:34 +0000 (19:41 +0000)]
Fixed another wrong variable name
Roland Mas [Sun, 23 May 2010 18:44:05 +0000 (18:44 +0000)]
Fixed wrong variable name
Roland Mas [Fri, 21 May 2010 20:22:27 +0000 (20:22 +0000)]
Removed permission check from Group constructor, since it doesn't belong there and it's also implemented elsewhere
Christian Bayle [Fri, 21 May 2010 18:53:48 +0000 (18:53 +0000)]
Make correct env.inc.php path
Christian Bayle [Fri, 21 May 2010 18:53:41 +0000 (18:53 +0000)]
Bump new version
Christian Bayle [Fri, 21 May 2010 18:53:32 +0000 (18:53 +0000)]
Add symlink to log4php
Roland Mas [Fri, 21 May 2010 18:39:23 +0000 (18:39 +0000)]
Fixed PL/pgSQL syntax
Roland Mas [Fri, 21 May 2010 16:57:52 +0000 (16:57 +0000)]
Fixed changing of a user's role within a project
Roland Mas [Fri, 21 May 2010 16:49:39 +0000 (16:49 +0000)]
Fixed removal of users from a project
Roland Mas [Fri, 21 May 2010 16:34:18 +0000 (16:34 +0000)]
Fixed member list on projects' admin page
Roland Mas [Fri, 21 May 2010 16:26:24 +0000 (16:26 +0000)]
Fixed member list for projects
Roland Mas [Fri, 21 May 2010 16:06:07 +0000 (16:06 +0000)]
Fixed Group::getUsers()
Roland Mas [Fri, 21 May 2010 15:53:24 +0000 (15:53 +0000)]
Fixes
Roland Mas [Fri, 21 May 2010 15:30:10 +0000 (15:30 +0000)]
Implemented Group::addUser() for PFO-RBAC
Roland Mas [Fri, 21 May 2010 15:04:34 +0000 (15:04 +0000)]
Small presentation fixes
Roland Mas [Fri, 21 May 2010 15:00:42 +0000 (15:00 +0000)]
Small presentation fixes
Roland Mas [Fri, 21 May 2010 14:57:56 +0000 (14:57 +0000)]
Unbreak Group::getRoles() in non-PFO RBAC
Roland Mas [Fri, 21 May 2010 14:39:06 +0000 (14:39 +0000)]
Migrated several methods from Role to the BaseRole class
Christian Bayle [Fri, 21 May 2010 14:34:52 +0000 (14:34 +0000)]
Add missing file
Roland Mas [Fri, 21 May 2010 14:25:06 +0000 (14:25 +0000)]
Only allow editing the name of group-local roles
Christian Bayle [Fri, 21 May 2010 14:12:27 +0000 (14:12 +0000)]
Bump new version
Christian Bayle [Fri, 21 May 2010 14:12:21 +0000 (14:12 +0000)]
Add dep on log4php
Roland Mas [Fri, 21 May 2010 13:56:51 +0000 (13:56 +0000)]
Allow editing permissions for Anonymous (role_id=1) when USE_PFO_RBAC
Roland Mas [Fri, 21 May 2010 13:48:50 +0000 (13:48 +0000)]
How about loading the settings for the Anonymous and LoggedIn roles too? Might be useful.
Roland Mas [Fri, 21 May 2010 13:35:27 +0000 (13:35 +0000)]
Better mapping of the permissions for non-members (and anonymous)
Roland Mas [Fri, 21 May 2010 13:22:20 +0000 (13:22 +0000)]
Don't drop all settings on role update (as that might remove important data)
Roland Mas [Fri, 21 May 2010 13:09:16 +0000 (13:09 +0000)]
Typo + better descriptions for role settings
Roland Mas [Fri, 21 May 2010 12:56:35 +0000 (12:56 +0000)]
Made PL/pgSQL compatible with PostgreSQL 8.1 (hopefully)
Roland Mas [Fri, 21 May 2010 12:50:42 +0000 (12:50 +0000)]
Convenience functions + fixed infinite loops again
Roland Mas [Fri, 21 May 2010 12:39:20 +0000 (12:39 +0000)]
Syntax fix
Roland Mas [Fri, 21 May 2010 12:29:27 +0000 (12:29 +0000)]
Settings must be saved even if zero, otherwise the normalization might grant too many privileges
Roland Mas [Fri, 21 May 2010 12:26:25 +0000 (12:26 +0000)]
Implemented BaseRole::getSetting()
Roland Mas [Fri, 21 May 2010 12:22:54 +0000 (12:22 +0000)]
Debug + removed useless code
Roland Mas [Fri, 21 May 2010 11:38:58 +0000 (11:38 +0000)]
Fixed infinite loop in roleedit.php
Christian Bayle [Fri, 21 May 2010 11:32:45 +0000 (11:32 +0000)]
Bump new version
Roland Mas [Fri, 21 May 2010 11:20:11 +0000 (11:20 +0000)]
Match interface and implementation
Christian Bayle [Fri, 21 May 2010 11:05:59 +0000 (11:05 +0000)]
move coreapi in www dir
Roland Mas [Fri, 21 May 2010 09:39:40 +0000 (09:39 +0000)]
Match interface and implementation
Roland Mas [Fri, 21 May 2010 09:37:03 +0000 (09:37 +0000)]
Refresh cached available roles when needed
Roland Mas [Fri, 21 May 2010 09:31:42 +0000 (09:31 +0000)]
Also cache available roles
Roland Mas [Fri, 21 May 2010 09:26:03 +0000 (09:26 +0000)]
Cache roles in order to go back to a slightly more reasonable number of SQL queries per page
Roland Mas [Fri, 21 May 2010 08:57:54 +0000 (08:57 +0000)]
Use correct variable name
Roland Mas [Fri, 21 May 2010 08:35:44 +0000 (08:35 +0000)]
Match interface and implementation
Roland Mas [Fri, 21 May 2010 08:32:44 +0000 (08:32 +0000)]
Use correct variable name in normalization code
Roland Mas [Fri, 21 May 2010 08:02:00 +0000 (08:02 +0000)]
Only allow editing permissions for the current project in roleedit.php
Roland Mas [Fri, 21 May 2010 08:01:48 +0000 (08:01 +0000)]
RBAC: edit permissions for a role
Roland Mas [Fri, 21 May 2010 08:01:35 +0000 (08:01 +0000)]
Turn the full data migration into a PL/pgSQL function, so the migration can be re-done
Roland Mas [Fri, 21 May 2010 08:01:24 +0000 (08:01 +0000)]
RBAC: adapted Role::getVal()
Roland Mas [Fri, 21 May 2010 08:01:12 +0000 (08:01 +0000)]
Dynamic detection for USE_PFO_RBAC (based on the existence of a /tmp/fusionforge-use-pfo-rbac file)
Roland Mas [Fri, 21 May 2010 08:01:02 +0000 (08:01 +0000)]
RBAC: plugin-specific settings, default values for roles, naming for settings
Roland Mas [Fri, 21 May 2010 08:00:48 +0000 (08:00 +0000)]
Adapt available settings and defaults to PFO RBAC
Roland Mas [Fri, 21 May 2010 08:00:35 +0000 (08:00 +0000)]
Display all relevant roles in menu to select which one to edit (including global roles and roles not from that project)
Roland Mas [Fri, 21 May 2010 08:00:21 +0000 (08:00 +0000)]
Bugfixes
Roland Mas [Fri, 21 May 2010 07:59:59 +0000 (07:59 +0000)]
Handle dollar-quoted strings in SQL parser
Roland Mas [Fri, 21 May 2010 07:59:46 +0000 (07:59 +0000)]
Enable database changes for planetforge.org RBAC
Roland Mas [Fri, 21 May 2010 07:59:34 +0000 (07:59 +0000)]
RBAC: adapted Group::getRoles()
Roland Mas [Fri, 21 May 2010 07:59:19 +0000 (07:59 +0000)]
Adapted normalization of role settings to new RBAC system
Roland Mas [Fri, 21 May 2010 07:59:08 +0000 (07:59 +0000)]
Implemented BaseRole::getLinkedProjects()
Roland Mas [Fri, 21 May 2010 07:58:55 +0000 (07:58 +0000)]
Implemented RBACEngine::getRoleById() method
Roland Mas [Fri, 21 May 2010 07:58:43 +0000 (07:58 +0000)]
Added convenience function to store a setting for a role, and code to allow listing all roles having *any* permission on some object
Roland Mas [Fri, 21 May 2010 07:58:32 +0000 (07:58 +0000)]
More removals of manual fiddling with role_setting (the same result is happening with the normalization anyway)
Roland Mas [Fri, 21 May 2010 07:58:20 +0000 (07:58 +0000)]
Removed/rewrote a handful of functions that were accessing the role_setting table directly (they now go through the RBAC engine)
Roland Mas [Fri, 21 May 2010 07:58:07 +0000 (07:58 +0000)]
Syntax fixes
Roland Mas [Fri, 21 May 2010 07:57:54 +0000 (07:57 +0000)]
Added method to find out what roles are allowed an action
Roland Mas [Fri, 21 May 2010 07:57:40 +0000 (07:57 +0000)]
Added method to fetch a Forum object from its ID
Roland Mas [Fri, 21 May 2010 07:57:28 +0000 (07:57 +0000)]
Removed a few unused variables
Roland Mas [Fri, 21 May 2010 07:57:14 +0000 (07:57 +0000)]
Removed userIsAdmin() methods
Roland Mas [Fri, 21 May 2010 07:56:56 +0000 (07:56 +0000)]
Removed userIsTechnician() methods
Roland Mas [Fri, 21 May 2010 07:56:44 +0000 (07:56 +0000)]
Also remove unused getCurrentUserPerm() methods
Roland Mas [Fri, 21 May 2010 07:56:29 +0000 (07:56 +0000)]
Get rid of userCanView() and userCanPost() methods
Roland Mas [Fri, 21 May 2010 07:56:17 +0000 (07:56 +0000)]
Switch between PFO/old RBAC in a few more places
Roland Mas [Fri, 21 May 2010 07:56:03 +0000 (07:56 +0000)]
Use PL/pgSQL function from PHP to migrate RBAC permissions on the fly
Roland Mas [Fri, 21 May 2010 07:55:48 +0000 (07:55 +0000)]
Implemented old-to-new conversion in a PL/pgSQL function
Roland Mas [Fri, 21 May 2010 07:55:35 +0000 (07:55 +0000)]
Migrate user-role relationships for the explicit roles
Roland Mas [Fri, 21 May 2010 07:55:23 +0000 (07:55 +0000)]
Use explicit IDs for the Anonymous and LoggedIn roles
Roland Mas [Fri, 21 May 2010 07:55:10 +0000 (07:55 +0000)]
Adedd PL/pgSQL stuff to migrate data to PFO RBAC
Roland Mas [Fri, 21 May 2010 07:54:48 +0000 (07:54 +0000)]
Handle new level for forums: posting without moderation
Roland Mas [Fri, 21 May 2010 07:54:21 +0000 (07:54 +0000)]
Syntax fix
Roland Mas [Fri, 21 May 2010 07:54:05 +0000 (07:54 +0000)]
RBAC migration: blocks and projects_hierarchy plugins
Roland Mas [Fri, 21 May 2010 07:53:50 +0000 (07:53 +0000)]
RBAC migration
Roland Mas [Fri, 21 May 2010 07:53:33 +0000 (07:53 +0000)]
RBAC migration: frs
Roland Mas [Fri, 21 May 2010 07:53:17 +0000 (07:53 +0000)]
RBAC migration
Roland Mas [Fri, 21 May 2010 07:53:01 +0000 (07:53 +0000)]
RBAC migration: project admin pages
Roland Mas [Fri, 21 May 2010 07:52:44 +0000 (07:52 +0000)]
RBAC for task managers
Roland Mas [Fri, 21 May 2010 07:52:29 +0000 (07:52 +0000)]
RBAC for forum/tracker/pm factories (it even makes the code simpler)
Roland Mas [Fri, 21 May 2010 07:52:14 +0000 (07:52 +0000)]
RBAC migration: forums subsystem
Roland Mas [Fri, 21 May 2010 07:51:51 +0000 (07:51 +0000)]
Deprecate session_require()
Roland Mas [Fri, 21 May 2010 07:51:36 +0000 (07:51 +0000)]
Removed last invocations of session_require()
Roland Mas [Fri, 21 May 2010 07:51:20 +0000 (07:51 +0000)]
More usage of session_require_perm (and new global permission setting: forge_stats)
Roland Mas [Fri, 21 May 2010 07:51:03 +0000 (07:51 +0000)]
More usage of session_require_perm
Roland Mas [Fri, 21 May 2010 07:50:47 +0000 (07:50 +0000)]
Removed unused code
Roland Mas [Fri, 21 May 2010 07:50:31 +0000 (07:50 +0000)]
More usage of session_require_perm
Roland Mas [Fri, 21 May 2010 07:50:17 +0000 (07:50 +0000)]
Use session_require_global_perm a few more times
Roland Mas [Fri, 21 May 2010 07:50:04 +0000 (07:50 +0000)]
Implemented Singleton patterns in a way that actually works...
Roland Mas [Fri, 21 May 2010 07:49:51 +0000 (07:49 +0000)]
Added session_require_perm and session_require_global_perm convenience functions, and try them out
Roland Mas [Fri, 21 May 2010 07:49:40 +0000 (07:49 +0000)]
Determine permission bits for forge_admin and approve_news
Roland Mas [Fri, 21 May 2010 07:49:30 +0000 (07:49 +0000)]
The RBAC engine and code need to be loaded...
Roland Mas [Fri, 21 May 2010 07:49:20 +0000 (07:49 +0000)]
BaseRole class doesn't really implement PFO_Role
Roland Mas [Fri, 21 May 2010 07:49:07 +0000 (07:49 +0000)]
Fixed bad rebase