getPermission static method
Implementation
static Future<void> getPermission({bool hasCTV = false}) => SharedPreferences.getInstance().then((prefs) {
if (hasCTV) Constants().contributeRole = jsonDecode(prefs.getString('contribute_role')??'{}');
else {
Constants().permission = prefs.getString('manager_type')??'member';
Constants().userId = prefs.getInt('id');
}
});