<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[특정 게시판 수정 권한에 관해 문의드립니다.]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/49301</link>
		<description><![CDATA[<p>안녕하세요~!</p>

<p>새해 복 많이 받으세요~</p>

<p>특정 게시판의 게시글을 수정하는 권한을 글 작성한 본인 외에도</p>

<p>같은 등급의 회원이면 모두 수정할 수 있게 하고 싶습니다.</p>

<p>게시판의 글작성 권한은 "구독자" 입니다.</p>

<p>작성된 게시글의 수정 권한을 모든 구독자가 가능하게 하고 단, 삭제는 관리자만 할 수 있게 하고 싶은데요.</p>

<p>가능할까요?</p>]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[안녕하세요~^^

KBoard 게시글을 같은 역할을 가진 사용자가

게시글을 수정할 수 있게 하시려면

아래...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/49321</link>
			<description><![CDATA[<p>안녕하세요~^^</p>

<p>KBoard 게시글을 같은 역할을 가진 사용자가</p>

<p>게시글을 수정할 수 있게 하시려면</p>

<p>아래의 코드를 활용해보시겠어요?</p>

<pre>
<code class="language-php">add_filter('kboard_is_editor', 'kboard_is_editor_20210107', 10, 4);
function kboard_is_editor_20210107($is_editor, $user_id, $use_prevent_modify_delete, $board){
	$content_uid = kboard_uid();
	
	if(kboard_mod() == 'editor' &amp;&amp; $content_uid &amp;&amp; is_user_logged_in()){
		$content = new KBContent();
		$content-&gt;initWithUID($content_uid);
		
		$content_user = new WP_User($content-&gt;member_uid);
		$user = new WP_User(get_current_user_id());
		
		if(isset($user-&gt;roles[0])&amp;&amp;$user-&gt;roles[0]&amp;&amp;isset($content_user-&gt;roles[0])&amp;&amp;$content_user-&gt;roles[0]){
			$is_editor = true;
		}
	}
	
	return $is_editor;
}</code></pre>

<p>위의 코드에서 $board-&gt;id == '1' 부분은 실제 게시판 id로 적용해주세요.</p>

<p>테마의 functions.php 파일에 코드를 추가하거나 <a href="https://ko.wordpress.org/plugins/code-snippets/" target="_blank">Code Snippets</a> 플러그인을 사용해서 코드를 추가할 수 있습니다.</p>

<p> </p>

<p>버그가 있을 수 있으니 충분히 테스트해보세요.</p>

<p>고맙습니다.</p>]]></description>
			<author>스레드봇</author>
			<pubDate>Thu, 07 Jan 2021 08:56:12 +0000</pubDate>
			<category>KBoard</category>
		</item>
			</channel>
</rss>