- 30 Aug, 2008 1 commit
-
-
Penny Leach authored
-
- 29 Aug, 2008 1 commit
-
-
Penny Leach authored
still to do: - cron processing is completely untested - i would like to split out the import table based on the transport: import_queue.host and token should go into a import_queue_mnet table - it's possibly worth thinking about making import a proper plugin type. not sure about the effect this has on the import transport framework... it might be possible to have both import and import transport plugintypes but that might be too heavy - at the very least if we split out import_queue.host and token into an mnet table it will pave the way for a better refactor laterz. - i would still really like to improve the mnet namespacing but that might be plausible at this point. - need to write docs about arguments and return types - i want to change the content_ready arguments to not include $filesmanifest as that is dependent on format being file - it may be actually better to dispatch somewhere else based on $format and then just have a generic $data which would be $filesmanifest for files and then something else for something like LEAP or maharanative or whatever, as this is checked in the importer, not not the importertransport.
-
- 21 Aug, 2008 20 commits
-
-
Penny Leach authored
-
Nigel McNie authored
-
Nigel McNie authored
Add two more functions - group_param_{group,user}id, which replace a whole lot of duplicated validation in lib/group.php.
-
Nigel McNie authored
-
Nigel McNie authored
-
Nigel McNie authored
-
Nigel McNie authored
-
Nigel McNie authored
-
Nigel McNie authored
-
Nigel McNie authored
Previx get_grouptype_options function with group_. Added some miscellaneous comments to describe how lib/group.php is ordered.
-
Nigel McNie authored
-
Nigel McNie authored
Perform validation on the parameters while we're in the area.
-
Nigel McNie authored
-
Nigel McNie authored
May as well have one, given we have group_delete. Takes a data structure that describes the new group, and checks that the new group will be created in a sane way.
-
Nigel McNie authored
Replace delete_group with a new function, group_delete. Same implementation, but has a doc comment and parameter checking.
-
Nigel McNie authored
-
Nigel McNie authored
Add doc comment to group_user_can_edit_views. Correct error messages for the InvalidArgumentExceptions.
-
Nigel McNie authored
-
Nigel McNie authored
-
Nigel McNie authored
-
- 20 Aug, 2008 18 commits
-
-
Nigel McNie authored
Now uses $userid/$groupid, they're checked for validity, and userid is optional.
-
Nigel McNie authored
-
Nigel McNie authored
-
Nigel McNie authored
-
Nigel McNie authored
-
Nigel McNie authored
-
Nigel McNie authored
Prevent role changing in groups if the user is the only admin. Add some functions to abstract role changing. This patch adds: * group_is_only_admin($group, $user) * group_can_change_role($group, $user, $newrole) * group_change_role($group, $user, $newrole) These functions are used on changerole.php, and also on the member listing page to prevent showing the change role link if the user is the only admin in the group. If the user has no roles that they can change to and changerole.php is visited, it will redirect back to the member listing with an informational message.
-
Nigel McNie authored
-
Nigel McNie authored
Unconditionally redirect after submitting the changerole form, which prevents crashing if someone attempts to submit the form without changing the role.
-
Nigel McNie authored
This is done using a form, although it's styled like all the other delete links we have around the place.
-
Nigel McNie authored
-
Nigel McNie authored
Prevent users from leaving a group (in group_remove_user) when they are the only admin in the group. Add caching to group_user_can_leave.
-
Nigel McNie authored
-
Nigel McNie authored
Add an empty TD into the members table if there's an odd number of results, which fills in the table background and makes it valid HTML.
-
Nigel McNie authored
-
Nigel McNie authored
-
Nigel McNie authored
Move the 'site closed' message to being at the top of the page, where it doesn't interfere with the menus in the admin section. Reuse the same styling that the 'masquerade' stuff has.
-
Nigel McNie authored
-