diff options
| author | wjames5 <will@tekimaki.com> | 2008-10-19 18:38:42 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2008-10-19 18:38:42 +0000 |
| commit | 8be38e34acab24eb7ce5fb2b0fc497747f8e9ce2 (patch) | |
| tree | 9de7cf567578d11a0f62dc7bf3fc487d0323f03c | |
| parent | f7d48ed34a30eab22a6218c07a443b47b237b501 (diff) | |
| download | tags-8be38e34acab24eb7ce5fb2b0fc497747f8e9ce2.tar.gz tags-8be38e34acab24eb7ce5fb2b0fc497747f8e9ce2.tar.bz2 tags-8be38e34acab24eb7ce5fb2b0fc497747f8e9ce2.zip | |
admin can edit all tags, this whole access control process is a bit wack and confusing - but at least this will make just this little bit of behavior make sense
| -rwxr-xr-x | LibertyTag.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/LibertyTag.php b/LibertyTag.php index 07b391d..466c9cf 100755 --- a/LibertyTag.php +++ b/LibertyTag.php @@ -1,6 +1,6 @@ <?php /** - * @version $Header: /cvsroot/bitweaver/_bit_tags/LibertyTag.php,v 1.40 2008/10/18 23:27:52 laetzer Exp $ + * @version $Header: /cvsroot/bitweaver/_bit_tags/LibertyTag.php,v 1.41 2008/10/19 18:38:42 wjames5 Exp $ * @package tags * * @copyright Copyright (c) 2004-2006, bitweaver.org @@ -687,7 +687,7 @@ function tags_content_edit( $pObject=NULL ) { $tags = array(); foreach ($tag->mInfo['tags'] as $t) { - if ($t['tagger_id'] == $gBitUser->mUserId) { + if ($t['tagger_id'] == $gBitUser->mUserId || $gBitUser->hasPermission('p_tags_admin') ) { $tags[] = $t['tag']; } } |
