fixing error when not using a permissions plugin