Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
fix for 4146 - revision page edit button only shows with correct perms #4850
Thanks @FedorSelitsky! I'm happy with this approach.
It looks like @kcleong's feedback on the original PR (#4189 (comment)) still applies here - we also need to do something about the link on the page title. I'd suggest linking to the preview action instead.
Also, this will need a test - I'm not sure if we currently have any tests for the moderation list, so I'm happy to pick this up if necessary.
@m1kola Yes, the test against Django master is a known expected failure and can be ignored here. (Hoping I'll get chance to work on that this weekend...)