In my trigger I would need to make a condition according to the user profile as well as a custom permission set , and here is my code which does not deploy due to "Unexpected token" error .

```
trigger BeforeInsertCu on Strick__c (before insert) {

    Id currentUser = UserInfo.getUserId();

    Id currentUserProfileId = userinfo.getProfileId();

    String profileName = [SELECT Id, Name FROM Profile WHERE Id = :currentUserProfileId].Name ;

    String permission =[SELECT DeveloperName   FROM CustomPermission  ]

        for( Strick__c ap : trigger.new) 
        {
            if (
                profileName =='Egypt' ||
                permission == 'PermissionEgypt'

            ){

            if(ap.Status__c == 'End' ) 

            {
                ap.Status__c.addError('The status can t be end in the creation');
            }

    }}
    }

```