mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-27 03:44:19 +00:00
Compare commits
3 Commits
cbd0a41bce
...
fe0fcb0e10
Author | SHA1 | Date | |
---|---|---|---|
|
fe0fcb0e10 | ||
|
32fa632961 | ||
|
562b8d5ce0 |
@ -1,7 +1,7 @@
|
|||||||
from enum import Enum
|
from enum import Enum
|
||||||
from flask_login import AnonymousUserMixin
|
|
||||||
from app import db, login, mail, socketio
|
from app import db, login, mail, socketio
|
||||||
from app.email import create_message
|
from app.email import create_message
|
||||||
|
from .anonymous_user import *
|
||||||
from .avatar import *
|
from .avatar import *
|
||||||
from .corpus_file import *
|
from .corpus_file import *
|
||||||
from .corpus_follower_association import *
|
from .corpus_follower_association import *
|
||||||
@ -142,14 +142,6 @@ def job_after_update_handler(mapper, connection, job):
|
|||||||
mail.send(msg)
|
mail.send(msg)
|
||||||
|
|
||||||
|
|
||||||
class AnonymousUser(AnonymousUserMixin):
|
|
||||||
def can(self, permissions):
|
|
||||||
return False
|
|
||||||
|
|
||||||
@property
|
|
||||||
def is_administrator(self):
|
|
||||||
return False
|
|
||||||
|
|
||||||
login.anonymous_user = AnonymousUser
|
login.anonymous_user = AnonymousUser
|
||||||
|
|
||||||
|
|
||||||
|
10
app/models/anonymous_user.py
Normal file
10
app/models/anonymous_user.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
from flask_login import AnonymousUserMixin
|
||||||
|
|
||||||
|
|
||||||
|
class AnonymousUser(AnonymousUserMixin):
|
||||||
|
def can(self, permissions):
|
||||||
|
return False
|
||||||
|
|
||||||
|
@property
|
||||||
|
def is_administrator(self):
|
||||||
|
return False
|
@ -95,7 +95,7 @@ nopaque.App = class App {
|
|||||||
.filter((operation) => {return subRegExp.test(operation.path);});
|
.filter((operation) => {return subRegExp.test(operation.path);});
|
||||||
for (let operation of subFilteredPatch) {
|
for (let operation of subFilteredPatch) {
|
||||||
let [match, userId, jobId] = operation.path.match(subRegExp);
|
let [match, userId, jobId] = operation.path.match(subRegExp);
|
||||||
this.flash(`[<a href="/jobs/${jobId}">${this.data.users[userId].jobs[jobId].title}</a>] New status: <span class="job-status-text" data-status="${operation.value}"></span>`, 'job');
|
this.flash(`[<a href="/jobs/${jobId}">${this.data.users[userId].jobs[jobId].title}</a>] New status: <span class="job-status-text" data-job-status="${operation.value}"></span>`, 'job');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply Patch
|
// Apply Patch
|
||||||
|
@ -1,5 +0,0 @@
|
|||||||
.clearfix::after {
|
|
||||||
clear: both;
|
|
||||||
content: "";
|
|
||||||
display: block;
|
|
||||||
}
|
|
@ -1,3 +1,9 @@
|
|||||||
|
.clearfix::after {
|
||||||
|
clear: both;
|
||||||
|
content: "";
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
.clickable {
|
.clickable {
|
||||||
cursor: pointer !important;
|
cursor: pointer !important;
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,6 @@
|
|||||||
|
|
||||||
// Components
|
// Components
|
||||||
@import "components/base-colors";
|
@import "components/base-colors";
|
||||||
@import "components/clearfix";
|
|
||||||
@import "components/corpus-status-color";
|
@import "components/corpus-status-color";
|
||||||
@import "components/helpers.scss";
|
@import "components/helpers.scss";
|
||||||
@import "components/job-status-color";
|
@import "components/job-status-color";
|
||||||
|
Loading…
Reference in New Issue
Block a user