Commit 993bb817 authored by Evren Kutar's avatar Evren Kutar

not create socket connection until current user defined by menu response

parent 85a74e64
......@@ -342,9 +342,12 @@ angular.module('ulakbus')
// broadcast for authorized menu items, consume in dashboard to show search inputs and/or
// related items
$rootScope.$broadcast("authz", data);
$rootScope.$broadcast("ws_turn_on");
$rootScope.searchInputs = data;
if (data.current_user) {
$rootScope.$broadcast("ws_turn_on");
}
$rootScope.current_user = data.current_user;
if (data.ogrenci || data.personel) {
$rootScope.current_user.can_search = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment