Merge pull request #2755 from matrix-org/dbkr/hosting_link_only_if_group_admin

Only show hosting link if group admin
pull/21833/head
David Baker 2019-03-06 10:58:01 +00:00 committed by GitHub
commit 051e5d392c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -820,7 +820,7 @@ export default React.createClass({
const hostingSignupLink = getHostingLink('community-settings'); const hostingSignupLink = getHostingLink('community-settings');
let hostingSignup = null; let hostingSignup = null;
if (hostingSignupLink) { if (hostingSignupLink && this.state.isUserPrivileged) {
hostingSignup = <div className="mx_GroupView_hostingSignup"> hostingSignup = <div className="mx_GroupView_hostingSignup">
{_t( {_t(
"Want more than a community? <a>Get your own server</a>", {}, "Want more than a community? <a>Get your own server</a>", {},