Simple extension to forbid adding contact statically on smart groups unless user has the permission "bypass smart group protection".
Releases
Since CiviCRM 5.x, extension releases compatible with CiviCRM 5.0 are compatible with 5.0 and later. An extension release compatible with 5.25, for example, means that it requires CiviCRM 5.25 or later.