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
mark organizers, mods, admins with a special icon? #215
Comments
When you say "roles" system, do you mean what is being conceptualized in 104? |
no, the "roles" system is related to Role-based Access Control (RBAC) which we have a primitive implementation of, referred to in jywarren#160 I'd prefer to implement this in user tagging, but it doesn't make a big difference to me. |
user tagging should be able to take care of the organizer status part of this issue, no? That's proposed in 104. but moderator and admin of the website is actually a technical role...seems different. |
it's partially related to database optimization; it results in fewer and On Mon, Feb 23, 2015 at 10:19 AM, Liz Barry notifications@github.com
|
@jywarren I'm not sure a see a functional difference in terms of database mangement or security, it'd just be however you choose to program it in the controllers. Perhaps I'm misunderstanding the comparison of tags for security. In some sense, groups in RBAC are tags applied to users. Users do not get direct privileges, they inherit the privileges of all groups they are assigned to. In that sense, tagging a user with their roles would be just fine. Right now you have a heirarchical role system where each higher role inherits all privileges of the roles underneath it. RBAC is meant to be logically separated into domains of concern, so that you can have many roles and each is more or less mutually exclusive from the others. We can discuss domains of concern in more detail in the RBAC ticket. |
Agreed, architecturally i'd like to have a separate table for roles instead On Mon, Feb 23, 2015 at 11:41 AM, Bryan Bonvallet notifications@github.com
|
Its only bad form if the controller is not well programmed to prevent users from adding security power tags that they ought not to, or changing existing power tags into security power tags. Having it separated at the database level causes the database to maintain some of that logic, which is probably better for a number of reasons. However, there is no requirement that it be done as such. Ultimately security is handled by the controller, no matter what the implementation, which is why it doesn't matter as much how you store it, so long as the controller is in charge of ensuring people can't mess with security ;) |
Again, we might want to go back to the RBAC ticket to discuss implementation details. |
Do we ever show stuff on the right edge of that window? Maybe we can put a On Sat, May 14, 2016 at 10:31 AM, Ananya Maiti notifications@github.com
|
@jywarren Didn'T get your last point. Can you explain it further? The text is shown in a tooltip as asked. |
@jywarren Is there any way to recognize organizers? Is there any |
I think we should use |
We're holding on this a bit pending some design decisions; latest via @steviepubliclab:
|
I'm going to close this since we're not sure about implementing it. If it comes back up we can re-open. Thanks! |
Proposed feature
In comments, users' profile pictures (if they exist) are shown in a small circle; see example: https://publiclab.org/notes/cbreuer/02-06-2016/oil-testing-kit-initial-electronics#comments
It'd be nice to see if people are admins or moderators, perhaps with a small marker next to the image, or based on the border of the image, perhaps. We could use the "roles" system for this -- to find whether a user is
user.role == 'admin'
or== 'moderator'
to decide how to display it. Similarly to #319, it'd be great to use a Bootstrap tooltip to explain what it means, and potentially link to a page explaining it (although the image link might still go to the user's profile page, and the link to the roles explanation could be on the profile page, where their role is listed).The code for the image on comments is currently at https://github.com/publiclab/plots2/blob/master/app/views/notes/_comment.html.erb#L10-L12
(Eventually, this could be connected to the profile tagging system (#104) instead of being based on the role field.)
Steps to fix
Please email the developers list (see https://publiclab.org/developers) if you have questions!
The text was updated successfully, but these errors were encountered: