Aircraft limitation by ranks

Good eve,

this will be my last request today!

As I read on the description, since the last update it will be possible to add a minimum rank to fly a aircraft (limitation). Well I (admin) can add a bid even for those one I´m not allowed to fly. How to correct this feature?

Are there any chances to show just those routes pilots are allowed to fly?

Thanks for your help and best regards from Germany

As I understand it, when you create an aircraft in your fleet, near the bottom there is a drop down box asking which rank is eligible to fly given aircraft.

In your ranking system, add ranks as you see fit dependant on hours flown.

When you goto your schedule it should only show the flights you are able to fly as long as you have set it up correctly in the schedules pages.

Hope that helps.

This, also has to be in your local.config.php.

# Pilot pilots to only fly aircraft they're ranked to
Config::Set('RESTRICT_AIRCRAFT_RANKS', true);

Thanks a lot for your help!

I added the code to the local.config.php - ad the bottom of the codes - but I can still see all the flights even for those aircrafts I´m not allowed to fly. Any other changes to do? Or will be the admin allowed to fly all aircrafts?

Did you set the aircraft to a minimum rank, and are all the ranks in order?

Yes, ranks are in order and I set the minimum rank to each aircraft. So maybe the position of code is not correct. I placed the quote to the end of the local.config.php and then transfered the modified version to the folder called “core”.

Maybe admins are allowed to fly all types even they are restricted by ranks?

So what exactly is happening? The schedules do show up? There was also an update to the schedules_results.tpl file to not show aircraft whos rank levels don’t match, perhaps that’s missing?

Well, ranks set but all flights shown up even those I´m not allowed to fly.

I guess that´s the point. How to update the code for schedules_results.tpl? What to edit to the code?

Compare it to the core/templates/ version, you can use a program like WinMerge or something to see the differences

Thanks a lot NAbeel! I´ve updated the folder again, now it works perfect! I´m just able to see those flights I´m allowed to fly!

Excellent!