diff --git a/mod/photos.php b/mod/photos.php
index 82060378e..c80a82e66 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -907,7 +907,15 @@ function photos_content(&$a) {
$o .= '
';
if($can_post && ($ph[0]['uid'] == $owner_uid)) {
- $o .= '';
+ $o .= '' . t('Edit photo') . '';
+
+ // lock
+ $o .= ( ( ($ph[0]['uid'] == local_user()) && (strlen($ph[0]['allow_cid']) || strlen($ph[0]['allow_gid'])
+ || strlen($ph[0]['deny_cid']) || strlen($ph[0]['deny_gid'])) )
+ ? ' -
'
+ : '');
+
+ $o .= '
';
}