Skip to content
Snippets Groups Projects
Commit ba349fc6 authored by tamaina's avatar tamaina
Browse files

Fix #9534

parent b2c79a5f
No related branches found
No related tags found
No related merge requests found
......@@ -226,7 +226,7 @@ export class NoteCreateService {
if (data.channel != null) data.localOnly = true;
if (data.visibility === 'public' && data.channel == null) {
if ((await this.roleService.getUserRoleOptions(user.id)).canPublicNote) {
if ((await this.roleService.getUserRoleOptions(user.id)).canPublicNote === false) {
data.visibility = 'home';
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment