Using Mediawiki 1.34.1, PHP 7.4.5, and MySQL 8.0.20.
I'd like for any user to be able to purge a page without confirmation.
Reading here it says I can do so by setting a user right:
https://www.mediawiki.org/wiki/Manual:Purge#Purge_as_a_user_right
And here it lists 'purge' as the specific user right: https://www.mediawiki.org/wiki/Manual:User_rights
And in MediaWiki's DefaultSettings.php it even has the following setting for it:
$wgGroupPermissions['user' ]['purge'] = true; // can use ?action=purge without clicking "ok"
However it continually prompts for confirmation, even when logged in.
I've added the same permission statement to LocalSettings.php, but the behavior didn't change.
Does this user right still work?
Or more to the point, how can I avoid the confirmation of the purge?
I've asked at the Mediawiki Support Desk, but haven't gotten any definitive answers, so I was wondering if anyone here might know, or know where I might check in the code to see if that specific user right is still effective.
Related
I suspect this is a simple/silly/trivial problem - but I've spent ages without finding a solution.
I have a vanilla MediaWiki instance - a few months old - on an Ubuntu server recently upgraded to 14.04. There is a single "user" - this user is in the "administrator" and "bureaucrat" groups when I look at the "User rights management" special page.
I need to rename some pages... I understand, from the FAQ, that I need to use the "Move" tab - and know that this tab is only shown for logged-in users. (The wiki is configured not to require users to be logged in to do edits.... I don't really need/want any access control.)
Even when logged in, I don't see a "Move" tab... Please can someone give me a hint - What am I doing wrong?
In the Vector skin, the Move tab is by default collapsed into a More tab. Depending on the version of your installation, that might only be an easy-to-overlook triangle:
^^^^
I am using push notifications to watch changes. When I add or update a file everything is ok.
When I delete a file (i.e. it goes to bin) then I do get a notification for that file lets say changeid=81477. When I go to get that change I find that it no longer exists so I can't work out what changed. However if I then go and look at changes I can see a change id=81478 that I never received a notification for. Looking at this change I can see that explicityTrashed = true, which is indicates this is related to the deleted file.
Now, my guess is that change 81477 was superceded by 81478 for some reason, but why do I not receive a notification for 81478?
Someone (non-google) on google+ suggested keeping a track of last change processed and grabbing all changes greater than that when a notification arrives, but this is a workaround to me.
The problem I have is not getting one of the notifications at all. I am posting here in the hope that someone from Google can answer this satisfactorily.
Is it a bug? Or is it expected?
Should we not rely on getting all changes from notifications and implement something similar to suggested?
My Metro App, uses Notifications and requires Lock Screen Access. All working great! Now, I notice that a Permissions settings charm is automatically created, with an option to turn On and Off these settings. So this leads me to the following questions:
Do these settings automatically prevent Notifications from being
shown if set to On or Off?
Or does it write a value somewhere that I need to read, and then
determine in my app if I need to Show Notifications or not?
If the answer to question 1 is Yes, great! I don't need to do anything. However, if No please advise on where these settings can be read from.
If the user sets the Notifications permission to Off then no notification will shown.
So when the setting is Off then the toastNotifier.Show(toast) call will do nothing so you don't need to do anything extra.
However if you want to specially handle the case when the notification are turned off then you can check this permission setting with the ToastNotifier.Setting
ToastNotifier toastNotifier = ToastNotificationManager.CreateToastNotifier();
if (toastNotifier.Setting == NotificationSetting.Enabled)
toastNotifier.Show(toast);
else
//Notifacation are disabled do something else
I have created a script that logs into a website, but now I need help. Here is the main script that logs me in, pretty self explanatory.
WebBrowser1.Document.GetElementById("login").SetAttribute("value", txtUsername.Text)
WebBrowser1.Document.GetElementById("passwd").SetAttribute("value", txtPassword.Text)
WebBrowser1.Document.GetElementById("SI").InvokeMember("Click")
Now, what I am trying to do is make it tell me if I have used the right log in or not (the website i'm using is live.com). So obviously I'm going to need something that can read the page, and if it finds this "That Microsoft account doesn't exist. Enter a different email address or get a new account." or this "That password is incorrect. Be sure you're using the password for your Microsoft account." then it should say something along the lines of this in a message box: "Could not log in". But if it's successful it should read something else, and also redirect it to a page. Can anyone give me any references or tips on how to start this?
Use a browser's developer tool (for example, Firefox's Ctrl-Shift-I) to see the ID of the error message (in this case, "idTd_Tile_ErrorMsg_Login").
Then try WebBrowser1.Document.GetElementById("idTd_Tile_ErrorMsg_Login"). If that element's content is empty, there is no error message and login succeeded. Also, when you log in the page changes. So you can observe changes in the page URL, or see if the element (idTd_Tile_ErrorMsg_Login) can not be found.
I moved my osqa site from one machine to another machine, so I moved my mysql database too.
After I finished this, the whole site is placed at another place. When I open the new site page, all information is fine.
But when I try to log into the new site, using my username and password (registered in my old site), it can't. When I look in the database, all user information is right here, not lost..
I just copied /var/lib/mysql/osqa from one machine to another for database migration.
What could be the reason that login doesn't work?
Might need more debug information, but I wonder if in moving the database, Django is no longer able to unencrypt the passwords. If this is the case, then running user.check_password("whatever") will return False. From the shell, run the following:
from forum.models import User
user = User.objects.get(username="foo")
user.check_password("bar")
If that gives you a "False" then you know that the password is no longer working. If you get "True", then report back and we'll try something else. Good luck.