Skip to content

Commit

Permalink
remove acl
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Feb 21, 2024
1 parent 4b1f45e commit 9b3197b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
10 changes: 0 additions & 10 deletions js/src/common/Acl.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions js/src/forum/components/ComposePollPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Page from 'flarum/common/components/Page';
import Poll from '../models/Poll';
import LoadingIndicator from 'flarum/common/components/LoadingIndicator';
import PollForm from './PollForm';
import Acl from '../../common/Acl';
import PollFormState from '../states/PollFormState';
import ComposePollHero from './ComposePollHero';
import Button from 'flarum/common/components/Button';
Expand All @@ -17,11 +16,6 @@ export default class ComposePollPage extends Page {
oninit(vnode: Mithril.Vnode) {
super.oninit(vnode);

// If user not allowed to manage goodie collections, redirect to home
if (!Acl.canManagePools()) {
m.route.set(app.route('home'));
}

// Get the `edit` parameter from the URL
const editId = m.route.param('id');
if (editId) {
Expand Down

0 comments on commit 9b3197b

Please sign in to comment.