- 22 Aug, 2008 1 commit
-
-
Nigel McNie authored
-
- 21 Aug, 2008 19 commits
-
-
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
-
- 19 Aug, 2008 1 commit
-
-
Richard Mansfield authored
-
- 12 Aug, 2008 1 commit
-
-
Richard Mansfield authored
-