Jump to content

Two VA Divisions [SOLVED]


servetas

Recommended Posts

  • Moderators

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

Link to comment
Share on other sites

  • Administrators

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.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...