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

[BUG] Test forum : User can unhide message in self. #505

Closed
luluwebmaster opened this issue Mar 16, 2019 · 2 comments
Closed

[BUG] Test forum : User can unhide message in self. #505

luluwebmaster opened this issue Mar 16, 2019 · 2 comments
Assignees

Comments

@luluwebmaster
Copy link

Hello,

When you open a thread in self moderated mode and you hide a message of another user he still can unhide it himself.

Original bug post : https://www.cryptos-currencies.com/threads/fd5dMTGLSJilQPxsZtmhmg/posts?start=9#eWjLZv0mSuiZdr0nSB0NAQ

@unenglishable unenglishable self-assigned this Mar 21, 2019
akinsey added a commit that referenced this issue Apr 5, 2019
* Fixes issues with users being able to unhide their posts
  in self moderated threads

* Fix was to fully implement lock and hide for self mod. Only
  hide was implemented. If you give the user permission to
  both lock and hide they should be able to properly moderate
  a self modded thread.

* Fix issues with Priority not being checked properly in posts
  module

* References #505
@akinsey
Copy link
Member

akinsey commented Apr 23, 2019

@luluwebmaster this should now be fixed, you will have to reload the base permissions set for this to take effect though. Currently there is no clean way of doing this, you have to wipe the base roles from the roles table. We will find a more elegant solution in the future, but for now:

  1. Make sure you're on the latest of fixes-2019 for epochtalk, run yarn install to get latest changes
  2. Connect to your postgres database and run the following sql commands:
SET session_replication_role = 'replica';
DELETE FROM roles WHERE lookup IN ('moderator', 'anonymous', 'globalModerator', 'newbie', 'banned', 'superAdministrator', 'patroller', 'private', 'user', 'administrator');
SET session_replication_role = 'origin';
  1. Restart the epochtalk server, this will reload the roles with the new base permissions

After doing so, self mod features should work as expected. Just let me know if you have any issues

@luluwebmaster

@unenglishable
Copy link
Member

resolved by #534

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants