viewsrc only on your own stuff
This commit is contained in:
parent
81160d4046
commit
9ffb8f131d
BIN
viewsrc.tgz
BIN
viewsrc.tgz
Binary file not shown.
|
@ -32,7 +32,7 @@ EOS;
|
||||||
}
|
}
|
||||||
|
|
||||||
function viewsrc_item_photo_menu(&$a,&$b) {
|
function viewsrc_item_photo_menu(&$a,&$b) {
|
||||||
if(! local_user())
|
if((! local_user()) || (local_user() != $b['item']['uid']))
|
||||||
return;
|
return;
|
||||||
$b['menu'] = array_merge( array( t('View Source') => $a->get_baseurl() . '/viewsrc/'. $b['item']['id']), $b['menu']);
|
$b['menu'] = array_merge( array( t('View Source') => $a->get_baseurl() . '/viewsrc/'. $b['item']['id']), $b['menu']);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user