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

History doesn't take into account permission #75

Open
bobot opened this issue Dec 18, 2013 · 1 comment
Open

History doesn't take into account permission #75

bobot opened this issue Dec 18, 2013 · 1 comment

Comments

@bobot
Copy link

bobot commented Dec 18, 2013

Hi,

When "View Threshold" is set to "developer", user with access level "reporter" can't see the changesets, good. However they can see them indirectly in the history with a quite explicit message. I expect them to see no informations about commits.

For reference in order to hard code this behavior for this configuration, I added the following code in history_get_raw_events_array in core/history_api.php

if( $v_type == PLUGIN_HISTORY && ($v_field_name == "Source_changeset_attached" || $v_field_name == "Source_changeset_removed")) {
          if( !$t_private_bugnote_visible ) {
                        continue;
              }
   }
@dregad
Copy link
Member

dregad commented Dec 18, 2013

I think that for a clean solution we would need to define a new event in the history api so that plugins can decide whether a history iten should be displayed or not.

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

2 participants