Commit c7f4bde1 authored by Boiget Boiget's avatar Boiget Boiget

Group share button: check that nextcoud is enabled

parent 2589f501
Pipeline #2328 passed with stages
in 4 minutes and 57 seconds
......@@ -146,6 +146,7 @@ const SingleGroupPage = ({ group = {}, ready, services }) => {
const favorite = user.favGroups.includes(group._id);
const classes = useStyles(member || animator, candidate, type)();
const history = useHistory();
const nextcloudEnabled = Meteor.settings.public.enableNextcloud === true;
const handleOpenedContent = () => {
toggleOpenedContent(!openedContent);
......@@ -311,7 +312,7 @@ const SingleGroupPage = ({ group = {}, ready, services }) => {
)}
</Grid>
</Grid>
{group.nextcloud && (member || animator) ? (
{group.nextcloud && nextcloudEnabled && (member || animator) ? (
<>
<Grid item xs={12} sm={12} md={12} className={classes.cardGrid}>
<Typography className={classes.smallTitle} variant="h5">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment