Moderators servetas Posted November 27, 2010 Moderators Report Posted November 27, 2010 Hello everyone! I am trying to create a second va on my phpvms website but if the pilot is on the one division he is able to see the flight schedules of the other va division.......Can we correct it? I do not want to instal a second phpvms system because i think i will get crazy ! I will wait for your answer.... George Servetas Quote
Moderators Kyle Posted November 27, 2010 Moderators Report Posted November 27, 2010 I think it can be done something in the sechudles modules or the templaltes. Otherwise I'm not smart like simpilot. Quote
Administrators simpilot Posted November 27, 2010 Administrators Report Posted November 27, 2010 You could just stop them from dispalying in the results list, in schedule_results.tpl right after foreach($allroutes as $route) { put if(Auth::loggedin() && ($route->code != Auth::$userinfo->code)) { continue; } If someone is looking at the schedules but not logged into the site they will see everything, but if they are logged in and their va code is not the same as the schedule code then it will skip that route. If you have a lot of schedules/pilots/server traffic it would be better to go back to the controller and build a new data call to just export the correct set of schedules to the template. 1 Quote
Moderators servetas Posted November 28, 2010 Author Moderators Report Posted November 28, 2010 Thank you very very much! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.