Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
Arcturus Morningstar
Arcturus Morningstar
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 162
    • Issues 162
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 18
    • Merge Requests 18
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Metrics
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Morningstar
  • Arcturus MorningstarArcturus Morningstar
  • Issues
  • #957

Closed
Open
Opened Mar 05, 2021 by Oliver@Oliver321💬

Mod Tools - acc_hide_mail

Simple explanation

I did a commit WAY back where I gave an option in permissions to block viewing mails per rank. I personally use it to block staffs from seeing emails and so on, just for the extra bit of security, when they don't need to see them. I didn't know how to do it inside of Modtools, so I just sort of let it go, but now I honestly really need it.

Now I've come to terms that I have no idea what I'm doing that wouldn't make the code even slower, but here's what I can explain:

Permissions ->

SELECT permissions.acc_hide_mail AS perm, mail FROM users LEFT JOIN permissions ON users.rank = permissions.id WHERE users.id = '1' LIMIT 1

If the perm = '1', hide mail. That's it really. I just don't know how to include a If condition properly without messing up something else and I know you wouldn't trust me to merge it lol.

Edited Mar 05, 2021 by Oliver
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: morningstar/Arcturus-Community#957
Join the new Krews Marketplace Discord Server