get rid of is_admin(), instead check for django permissions. a couple things were using is_admin(), so now there's an example of the permission adding and usage, as those were ported
27 lines
801 B
Python
27 lines
801 B
Python
# -*- coding: utf-8 -*-
|
|
from __future__ import unicode_literals
|
|
|
|
from django.db import models, migrations
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('ircbot', '0010_auto_20150620_0930'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterModelOptions(
|
|
name='botuser',
|
|
options={'permissions': (('quit_bot', 'Can tell the bot to quit via IRC'),)},
|
|
),
|
|
migrations.AlterModelOptions(
|
|
name='ircchannel',
|
|
options={'permissions': (('manage_current_channels', 'Can join/part channels via IRC'),)},
|
|
),
|
|
migrations.AlterModelOptions(
|
|
name='ircplugin',
|
|
options={'ordering': ['path'], 'permissions': (('manage_loaded_plugins', 'Can load/unload plugins via IRC'),)},
|
|
),
|
|
]
|