XF 2.2 Set permission by default to Yes

You can’t. Permissions don’t have default values.

You can programmatically set the permission value during installation of an add-on with PHP code.

Check for our usages of applyGlobalPermission and applyGlobalPermissionInt and applyContentPermission for examples.

Primarily we set the permission values based on existing permission values so it only applies to groups where it makes sense.
 
Top Bottom