@@ -701,10 +701,11 @@ public static function getRoles($names, $type, &$missing = null) {
701
701
}
702
702
703
703
public function base_afterSignIn_handler ($ sender , $ args ) {
704
- self ::log ('base_afterSignIn_handler ' , []);
705
704
if (!Gdn::session ()->isValid ()) {
706
705
throw new ClientException ('The session could not be started ' , 401 );
707
706
}
707
+ self ::log ('base_afterSignIn_handler ' , ['Session Permissions ' => Gdn::session ()->getPermissionsArray ()]);
708
+
708
709
}
709
710
710
711
/**
@@ -713,8 +714,8 @@ public function base_afterSignIn_handler($sender, $args) {
713
714
* @param $args
714
715
*/
715
716
public function base_guestSignIn_handler ($ sender , $ args ) {
716
- self ::log ('base_guestSignIn_handler ' , []);
717
717
$ this ->startSessionAsGuest ($ sender , $ args );
718
+ self ::log ('base_guestSignIn_handler ' , ['Session Permissions ' => Gdn::session ()->getPermissionsArray ()]);
718
719
}
719
720
720
721
/**
@@ -723,8 +724,9 @@ public function base_guestSignIn_handler($sender, $args) {
723
724
* @param $args
724
725
*/
725
726
public function base_badSignIn_handler ($ sender , $ args ) {
726
- self ::log ('base_badSignIn_handler ' , []);
727
727
$ this ->startSessionAsGuest ($ sender , $ args );
728
+ self ::log ('base_badSignIn_handler ' , ['Session Permissions ' => Gdn::session ()->getPermissionsArray ()]);
729
+
728
730
}
729
731
730
732
/**
@@ -856,6 +858,9 @@ public function userController_UserCell_handler($sender, $args) {
856
858
}
857
859
858
860
function gdn_dispatcher_beforeControllerMethod_handler ($ sender , $ args ){
861
+ if (!c ('Garden.Installed ' )){
862
+ return ;
863
+ }
859
864
if (!Gdn::session ()->isValid ()) {
860
865
return ;
861
866
}
@@ -1644,7 +1649,9 @@ private function getTopcoderProjectRoles($user, $resources = null, $roleResource
1644
1649
// TODO: Debugging issues-108
1645
1650
public function base_beforeNewDiscussionButton_handler ($ sender , $ args ) {
1646
1651
$ newDiscussionModule = $ args ['NewDiscussionModule ' ];
1652
+
1647
1653
self ::log ('NewDiscussionModule_beforeNewDiscussionButton_handler ' , [
1654
+ 'UserID ' => Gdn::session ()->UserID ,
1648
1655
'ShowGuests ' => $ newDiscussionModule ->ShowGuests ,
1649
1656
'CategoryID ' => $ newDiscussionModule ->CategoryID , 'session.isValid ' => Gdn::session ()->isValid (),
1650
1657
'privilegedGuest ' => ($ newDiscussionModule ->ShowGuests && !Gdn::session ()->isValid ()),
0 commit comments