'm first Brazilian I am developing a plugin and the following code it does not check the permissions currently use permissionsex
get rid of that ; after the permission check, your cancelling out your check and then running the code anyway