Browse files

fix(discussions): put new discussion page behind gatekeeper

Lacking or non existent guid resulted in Fatal Error. Also makes sure
user can access the group.

Fixes #9383
  • Loading branch information...
hypeJunction committed Feb 19, 2016
1 parent f22cfa8 commit a583f65b6e5051d8d79f49aa16d455b24aebeedc
Showing with 4 additions and 0 deletions.
  1. +4 −0 mod/discussions/views/default/resources/discussion/add.php
@@ -3,6 +3,10 @@
$guid = elgg_extract('guid', $vars);
elgg_group_gatekeeper(true, $guid);
$container = get_entity($guid);
// Make sure user has permissions to add a topic to container

0 comments on commit a583f65

Please sign in to comment.