diff options
Diffstat (limited to 'mod/group.php')
-rw-r--r-- | mod/group.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/group.php b/mod/group.php index 40f7d756a..91b9999dc 100644 --- a/mod/group.php +++ b/mod/group.php @@ -1,8 +1,9 @@ <?php +require_once('include/group.php'); + function group_aside(&$a) { if(local_user()) { - require_once('include/group.php'); $a->set_widget('groups_edit',group_side('collections','group',false,(($a->argc > 1) ? intval($a->argv[1]) : 0))); } } @@ -62,6 +63,8 @@ function group_post(&$a) { function group_content(&$a) { $change = false; + + logger('mod_group: ' . $a->cmd,LOGGER_DEBUG); if(! local_user()) { notice( t('Permission denied') . EOL); @@ -112,6 +115,7 @@ function group_content(&$a) { if((argc() > 2) && intval(argv(1)) && argv(2)) { + check_form_security_token_ForbiddenOnErr('group_member_change', 't'); $r = q("SELECT abook_xchan from abook where abook_xchan = '%s' and abook_channel = %d and not (abook_flags & %d) and not (abook_flags & %d) and not (abook_flags & %d) limit 1", |