HTML doesn't work without ACCOUNT_ROLE_ALLOWCODE, so don't offer it
as an option.
This commit is contained in:
parent
c99d89e441
commit
cc2bef67dd
@ -1552,7 +1552,6 @@ function mimetype_select($channel_id, $current = 'text/bbcode') {
|
||||
|
||||
$x = array(
|
||||
'text/bbcode',
|
||||
'text/html',
|
||||
'text/markdown',
|
||||
'text/plain'
|
||||
);
|
||||
@ -1564,8 +1563,10 @@ function mimetype_select($channel_id, $current = 'text/bbcode') {
|
||||
|
||||
if($r) {
|
||||
if($r[0]['account_roles'] & ACCOUNT_ROLE_ALLOWCODE) {
|
||||
if(local_user() && get_account_id() == $r[0]['account_id'])
|
||||
if(local_user() && get_account_id() == $r[0]['account_id']) {
|
||||
$x[] = 'text/html';
|
||||
$x[] = 'application/x-php';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user