Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable poll command only for moderators in installation instructions #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,6 @@ Poll: Do you like polls?
1. Install the app
2. Setup the commands (you need to use your full path to occ, also don't use `sudo -u www-data` inside the command, because it is automatically run as www-data):
```
sudo -u www-data /var/www/nextcloud/occ talk:command:add poll Poll '/var/www/nextcloud/occ talk:poll {ROOM} {USER} {ARGUMENTS}' 2 3
sudo -u www-data /var/www/nextcloud/occ talk:command:add poll Poll '/var/www/nextcloud/occ talk:poll {ROOM} {USER} {ARGUMENTS}' 2 1
sudo -u www-data /var/www/nextcloud/occ talk:command:add vote Poll '/var/www/nextcloud/occ talk:poll:vote {ROOM} {USER} {ARGUMENTS}' 2 3
```
2 changes: 0 additions & 2 deletions lib/Command/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ public function showPoll(OutputInterface $output, \OCA\TalkSimplePoll\Model\Poll
}


$output->writeln('');
$output->writeln('/poll close - Close the voting and show results');
return;
}

Expand Down