return $o;
}
+ /**
+ * Returns a minimal ACL block for self-only permissions
+ *
+ * @param int $localUserId
+ * @param string $explanation
+ * @return string
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+ */
+ public static function getSelfOnlyHTML(int $localUserId, string $explanation)
+ {
+ $selfPublicContactId = Contact::getPublicIdByUserId($localUserId);
+
+ $tpl = Renderer::getMarkupTemplate('acl/self_only.tpl');
+ $o = Renderer::replaceMacros($tpl, [
+ '$selfPublicContactId' => $selfPublicContactId,
+ '$explanation' => $explanation,
+ ]);
+
+ return $o;
+ }
+
/**
* Return the default permission of the provided user array
*
--- /dev/null
+<input type="hidden" name="contact_allow" value="{{$selfPublicContactId}}">
+<input type="hidden" name="group_allow" value="">
+<input type="hidden" name="contact_deny" value="">
+<input type="hidden" name="group_deny" value="">
+<div class="alert alert-info" role="alert"><p>{{$explanation}}</p></div>
\ No newline at end of file