Cleaned useless permission code