03-09-2017, 09:19 PM
I don't think you need the extra column in the database for the. Since permission level 2 is admin (or you can make any other permission you want to set) is already taken care of by userspice. So all you have to do is
if(hasPerm([2],$user->data()->id)){
Now...where to put that line of code.
I would put it in usersc/includes/navigation.php
That will get it up in the header but prevent it from being overwritten by our updates.
if(hasPerm([2],$user->data()->id)){
Code:
//run function here.
Code:
}
Now...where to put that line of code.
I would put it in usersc/includes/navigation.php
That will get it up in the header but prevent it from being overwritten by our updates.