Changeset 3426
- Timestamp:
- 06/10/07 18:31:02 (19 months ago)
- Location:
- trunk
- Files:
-
- 4 modified
-
blog/owner/entry/delete/index.php (modified) (1 diff)
-
blog/owner/entry/edit/item.php (modified) (1 diff)
-
blog/owner/entry/visibility/item.php (modified) (1 diff)
-
lib/pageACL.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/blog/owner/entry/delete/index.php
r3313 r3426 13 13 foreach(explode(',', $_POST['targets']) as $target) { 14 14 // TeamBlog check 15 if( empty($pc)){15 if(!Acl::Check('group.blogwriters')){ 16 16 $isPosting = DBQuery::queryCell("SELECT team FROM {$database['prefix']}TeamEntryRelations WHERE owner='$owner' and team='".$_SESSION['admin']."' and id='".$suri['id']."'" ); 17 17 if(empty($isPosting)) { -
trunk/blog/owner/entry/edit/item.php
r3313 r3426 30 30 } 31 31 32 33 // 팀블로그 :: 현재 포스트를 내가 편집할 수 있는지 권한확인 34 if(empty($pc) && !empty($suri['id'])){ 35 $isPosting = DBQuery::queryCell("SELECT Team FROM {$database['prefix']}TeamEntryRelations WHERE Owner='$owner' and Team='$_SESSION[admin]' and Id='$suri[id]' " ); 32 // Check whether or not user has permission to edit. 33 if(Acl::Check('group.blogwriters')===false && !empty($suri['id'])){ 34 $isPosting = DBQuery::queryCell("SELECT team 35 FROM {$database['prefix']}TeamEntryRelations 36 WHERE owner = '".$owner."' 37 and team = '".$_SESSION['admin']."' 38 and id = '".$suri['id']); 36 39 if(empty($isPosting)) { @header("location:".$blogURL ."/owner/entry"); exit; } 37 40 } -
trunk/blog/owner/entry/visibility/item.php
r3313 r3426 16 16 17 17 // TeamBlog ACL check whether or not current user can edit this post. 18 if(empty($pc) && !empty($suri['id'])){ 19 $isPosting = DBQuery::queryCell("SELECT team FROM {$database['prefix']}TeamEntryRelations WHERE owner='".$owner."' and team='".$_SESSION['admin']."' and id='".$suri['id']."'" ); 18 if(Acl::Check('group.blogwriters') === false && !empty($suri['id'])){ 19 $isPosting = DBQuery::queryCell("SELECT team 20 FROM {$database['prefix']}TeamEntryRelations 21 WHERE owner='".$owner."' 22 and team='".$_SESSION['admin']."' 23 and id='".$suri['id']."'" ); 20 24 if(empty($isPosting)) { 21 25 exit; -
trunk/lib/pageACL.php
r3313 r3426 26 26 '/edit'); 27 27 28 $pc = teamblogUser::PC(); // Teamblog moderator29 $ac = teamblogUser::AC(); // Teamblog administrator28 $pc = Acl::Check('group.blogwriters'); // Teamblog moderator 29 $ac = Acl::Check('group.administrators'); // Teamblog administrator 30 30 31 31 if(empty($ac) && !eregi('/owner/entry', $suri['directive'])){
